function static_page_config_form in Static Page 7
@file static_page config form.
1 string reference to 'static_page_config_form'
- static_page_menu in ./
static_page.module - Implements hook_menu().
File
- ./
static_page.pages.inc, line 7 - static_page config form.
Code
function static_page_config_form() {
$options = array();
$types = node_type_get_types();
foreach ($types as $key => $values) {
$options[$key] = $values->name;
}
$default_types = variable_get('static_page_types', array());
$form['static_page_types'] = array(
'#title' => t('Content types used as static page'),
'#type' => 'checkboxes',
'#description' => t('All nodes of these selected types will be used as static page.'),
'#options' => $options,
'#default_value' => $default_types,
);
//return system_settings_form($form, TRUE);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
);
return $form;
}