You are here

function apachesolr_exclude_node_form_node_type_form_alter in Apache Solr Exclude Node 7

Same name and namespace in other branches
  1. 6 apachesolr_exclude_node.module \apachesolr_exclude_node_form_node_type_form_alter()

Implements hook_form_node_type_form_alter().

File

./apachesolr_exclude_node.module, line 33
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.'),
  );
}