/[drupal]/contributions/modules/archive/archive.module
ViewVC logotype

Diff of /contributions/modules/archive/archive.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.36 by susurrus, Mon Apr 28 01:59:57 2008 UTC revision 1.37 by susurrus, Tue May 6 18:41:01 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: archive.module,v 1.35 2008/04/28 01:56:55 susurrus Exp $  // $Id: archive.module,v 1.36 2008/04/28 01:59:57 susurrus Exp $
3    
4  /**  /**
5   * Implementation of hook_help().   * Implementation of hook_help().
# Line 26  function archive_menu() { Line 26  function archive_menu() {
26      'title'            => 'Archives',      'title'            => 'Archives',
27      'access arguments' => array('access content'),      'access arguments' => array('access content'),
28      'page callback'    => 'archive_page',      'page callback'    => 'archive_page',
     'file'             => 'archive.pages.inc',  
29      'type'             => MENU_SUGGESTED_ITEM      'type'             => MENU_SUGGESTED_ITEM
30    );    );
31    $items['admin/settings/archive'] = array(    $items['admin/settings/archive'] = array(
# Line 35  function archive_menu() { Line 34  function archive_menu() {
34      'page callback'    => 'drupal_get_form',      'page callback'    => 'drupal_get_form',
35      'page arguments'   => array('archive_admin_settings'),      'page arguments'   => array('archive_admin_settings'),
36      'access arguments' => array('access administration pages'),      'access arguments' => array('access administration pages'),
     'file'             => 'archive.admin.inc',  
37      'type'             => MENU_NORMAL_ITEM      'type'             => MENU_NORMAL_ITEM
38    );    );
39    
# Line 272  function _archive_types_sql_string($type Line 270  function _archive_types_sql_string($type
270            unset($types[$key]);            unset($types[$key]);
271          }          }
272        }        }
273        $final_types = implode('", "', array_keys($types));        $final_types = implode('\', \'', array_keys($types));
274      }      }
275    }    }
276    if (strlen($final_types) > 0) {    if (strlen($final_types) > 0) {
277      $final_types = 'AND n.type IN ("'. $final_types .'") ';      $final_types = 'AND n.type IN (\''. $final_types .'\') ';
278    }    }
279    return $final_types;    return $final_types;
280  }  }

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

  ViewVC Help
Powered by ViewVC 1.1.3