function headerimage_settings_form in Header image 6
Same name and namespace in other branches
- 5 headerimage.module \headerimage_settings_form()
- 7 headerimage.admin.inc \headerimage_settings_form()
Header Image settings form
1 string reference to 'headerimage_settings_form'
- headerimage_menu in ./
headerimage.module - Implementation of hook_menu()
File
- ./
headerimage.admin.inc, line 79 - headerimage.admin.inc
Code
function headerimage_settings_form() {
$form = array();
$nodes = node_get_types();
foreach ($nodes as $node) {
$nodetype[$node->type] = check_plain($node->name);
}
$form['headerimage_node_type'] = array(
'#type' => 'checkboxes',
'#title' => t('Node type'),
'#description' => t('The node type(s) that can be used with Header Image module.'),
'#default_value' => variable_get('headerimage_node_type', array()),
'#options' => $nodetype,
'#multiple' => true,
'#required' => true,
);
$form['headerimage_condition_types'] = array(
'#type' => 'checkboxes',
'#title' => t('Condition types'),
'#description' => t('Types of conditions by which nodes can be selected to be displayed.'),
'#default_value' => variable_get('headerimage_condition_types', array(
'nid',
)),
'#options' => headerimage_get_condition_types(),
'#required' => true,
);
$form['headerimage_teaser'] = array(
'#type' => 'checkbox',
'#title' => t('Teaser'),
'#description' => t('Display the Header Image node as teaser or full node.'),
'#default_value' => variable_get('headerimage_teaser', true),
);
return system_settings_form($form);
}