function apachesolr_exclude_node_form_node_type_form_alter in Apache Solr Exclude Node 6
Same name and namespace in other branches
- 7 apachesolr_exclude_node.module \apachesolr_exclude_node_form_node_type_form_alter()
Implementation of hook_form_node_type_form_alter().
File
- ./
apachesolr_exclude_node.module, line 18 - Module file for the Apache Solr Exclude Node module.
Code
function apachesolr_exclude_node_form_node_type_form_alter(&$form, $form_state) {
$form['submission']['apachesolr_exclude_node_enable'] = array(
'#type' => 'checkbox',
'#title' => t('Enable excluding of nodes from Apache Solr'),
'#default_value' => variable_get('apachesolr_exclude_node_enable_' . $form['#node_type']->type, 0),
'#description' => t('Check this box to enable excluding of specific nodes from Apache Solr for this content type.'),
);
}