You are here

function search_api_exclude_action_info in Search API exclude 7

Implements hook_action_info().

File

./search_api_exclude.module, line 231
Allows users to exclude specific nodes from indexing by Search API.

Code

function search_api_exclude_action_info() {
  $actions = array();
  $actions['search_api_exclude_set_status_action'] = array(
    'type' => 'node',
    'label' => t('Exclude node from Search API'),
    'behavior' => array(
      'changes_property',
    ),
    'configurable' => FALSE,
    'vbo_configurable' => FALSE,
    'triggers' => array(
      'any',
    ),
  );
  $actions['search_api_exclude_reset_status_action'] = array(
    'type' => 'node',
    'label' => t('Include node into Search API'),
    'behavior' => array(
      'changes_property',
    ),
    'configurable' => FALSE,
    'vbo_configurable' => FALSE,
    'triggers' => array(
      'any',
    ),
  );
  return $actions;
}