function search_api_rules_action_info in Search API 7
Implements hook_rules_action_info().
File
- ./
search_api.rules.inc, line 12 - Search API Rules integration.
Code
function search_api_rules_action_info() {
$items['search_api_index'] = array(
'parameter' => array(
'entity' => array(
'type' => 'entity',
'label' => t('Entity'),
'description' => t('The item to index.'),
),
'index' => array(
'type' => 'search_api_index',
'label' => t('Index'),
'description' => t('The index on which the item should be indexed. Leave blank to index on all indexes for this item type.'),
'optional' => TRUE,
'options list' => 'search_api_index_options_list',
),
'index_immediately' => array(
'type' => 'boolean',
'label' => t('Index immediately'),
'description' => t('Activate for indexing the item right away, otherwise it will only be marked as dirty and indexed during the next cron run.'),
'optional' => TRUE,
'default value' => TRUE,
'restriction' => 'input',
),
),
'group' => t('Search API'),
'access callback' => '_search_api_rules_access',
'label' => t('Index an entity'),
'base' => '_search_api_rules_action_index',
);
return $items;
}