/[drupal]/contributions/modules/archive/archive.admin.inc
ViewVC logotype

Contents of /contributions/modules/archive/archive.admin.inc

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


Revision 1.6 - (show annotations) (download) (as text)
Fri Jan 4 12:25:33 2008 UTC (22 months, 3 weeks ago) by susurrus
Branch: MAIN
CVS Tags: DRUPAL-6--1-1, DRUPAL-6--1-3, DRUPAL-6--1-2, HEAD
Branch point for: DRUPAL-6--1
Changes since 1.5: +3 -3 lines
File MIME type: text/x-php
[#206189] by keith.smith
  - General code cleanup
  - Documentation fixes
  - E_ALL variable initiatialization fix
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 }

  ViewVC Help
Powered by ViewVC 1.1.2