You are here

function archive_admin_settings in Archive 7.2

Same name and namespace in other branches
  1. 5 archive.module \archive_admin_settings()
  2. 6 archive.admin.inc \archive_admin_settings()
  3. 7 archive.admin.inc \archive_admin_settings()

Form building callback for the archive settings page.

1 string reference to 'archive_admin_settings'
archive_menu in ./archive.module
Implementation of hook_menu().

File

./archive.admin.inc, line 6

Code

function archive_admin_settings() {
  $types = node_type_get_types();
  $final_types = array();
  foreach ($types as $key => $value) {
    $final_types[$key] = $value->name;
  }
  $form['archive_type_filters'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Content types available in archive'),
    '#default_value' => variable_get('archive_type_filters', array()),
    '#options' => $final_types,
    '#description' => t('Posts of these types will be displayed in the archive.'),
  );
  return system_settings_form($form);
}