| 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(). |
| 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( |
| 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 |
|
|
| 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 |
} |
} |