You are here

function apachesolr_exclude_node_feeds_processor_targets_alter in Apache Solr Exclude Node 7

Implements hook_feeds_node_processor_targets_alter().

File

./apachesolr_exclude_node.module, line 168
Module file for the Apache Solr Exclude Node module.

Code

function apachesolr_exclude_node_feeds_processor_targets_alter(&$targets, $processor, $content_type) {
  if (variable_get('apachesolr_exclude_node_enable_' . $content_type, 0)) {
    $targets['apachesolr_exclude_node_enabled'] = array(
      'name' => t('apachesolr_exclude_node: enabled'),
      'description' => t('Value should be 1 or 0, representing whether the node will be indexed with Apache Solr or not.'),
      'callback' => 'apachesolr_exclude_node_feeds_set_target',
    );
  }
}