function node_noindex_form_node_type_form_alter in Node Noindex 6
Same name and namespace in other branches
- 7 node_noindex.module \node_noindex_form_node_type_form_alter()
Implementation of hook_form_FORM_ID_alter().
File
- ./
node_noindex.module, line 91
Code
function node_noindex_form_node_type_form_alter(&$form, $form_state) {
$form['node_noindex'] = array(
'#type' => 'fieldset',
'#title' => t('Search engine settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['node_noindex']['node_noindex'] = array(
'#type' => 'checkbox',
'#title' => t('Enable noindex option.'),
'#default_value' => variable_get('node_noindex_' . $form['#node_type']->type, 0),
'#description' => t('Should this node type display the noindex setting in the node edit form?'),
);
}