function views_atom_rules_action_info in Views Atom 7
Same name and namespace in other branches
- 6 views_atom.rules.inc \views_atom_rules_action_info()
Implements hook_rules_action_info().
File
- ./
views_atom.rules.inc, line 6
Code
function views_atom_rules_action_info() {
$actions = array();
$actions['views_atom_rules_action_add_to_feed'] = array(
'label' => t('Add an entity to a feed'),
'group' => t('Views Atom'),
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => t('Node'),
),
),
'parameter' => array(
// @todo, should this be "node" instead of "entity" ?
'data' => array(
'type' => 'entity',
'label' => t('Entity'),
'description' => t(''),
'restriction' => 'selector',
'wrapped' => TRUE,
),
'view_display' => array(
'type' => 'list<text>',
'label' => t('View and Display'),
'options list' => 'views_atom_get_feed_displays_options',
'description' => t('Select the view and display that is responsible for generating the feed for this node. Only Feed displays are available.'),
),
),
'base' => 'views_atom_rules_action_add_to_feed',
);
$actions['views_atom_rules_action_send_tombstone'] = array(
'label' => t('Send node tombstone'),
'group' => t('Views Atom'),
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => t('Node'),
),
),
'parameter' => array(
// @todo, should this be "node" instead of "entity" ?
'data' => array(
'type' => 'entity',
'label' => t('Entity'),
'description' => t(''),
'restriction' => 'selector',
'wrapped' => TRUE,
),
'topic_url' => array(
'type' => 'text',
'label' => t('Topic URL --- TEXT'),
'description' => t(' '),
),
),
'base' => 'views_atom_rules_action_send_tombstone',
);
return $actions;
}