| 1 |
<?php
|
| 2 |
// $Id: archive.admin.inc,v 1.5 2007/12/23 17:43:27 susurrus Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Form building callback for the archive settings page.
|
| 6 |
*/
|
| 7 |
function archive_admin_settings() {
|
| 8 |
$types = node_get_types();
|
| 9 |
$final_types = array();
|
| 10 |
foreach ($types as $key => $value) {
|
| 11 |
$final_types[$key] = $value->name;
|
| 12 |
}
|
| 13 |
|
| 14 |
$form['archive_type_filters'] = array(
|
| 15 |
'#type' => 'checkboxes',
|
| 16 |
'#title' => t('Content types available in archive'),
|
| 17 |
'#default_value' => variable_get('archive_type_filters', array()),
|
| 18 |
'#options' => $final_types,
|
| 19 |
'#description' => t('Posts of these types will be displayed in the archive.')
|
| 20 |
);
|
| 21 |
|
| 22 |
return system_settings_form($form);
|
| 23 |
}
|