You are here

archive.admin.inc in Archive 7

Same filename and directory in other branches
  1. 6 archive.admin.inc
  2. 7.2 archive.admin.inc

File

archive.admin.inc
View source
<?php

/**
 * Form building callback for the archive settings page.
 */
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);
}

Functions

Namesort descending Description
archive_admin_settings Form building callback for the archive settings page.