function flag_action_info in Flag 7.2
Same name and namespace in other branches
- 6.2 includes/flag.actions.inc \flag_action_info()
- 7.3 includes/flag.actions.inc \flag_action_info()
Implements hook_action_info().
File
- includes/
flag.actions.inc, line 34 - Hooks for flag actions.
Code
function flag_action_info() {
return array(
'flag_node_action' => array(
'type' => 'node',
'label' => t('Flag (or unflag) a node'),
'configurable' => TRUE,
'triggers' => array(
'node_presave',
'node_insert',
'node_update',
'node_delete',
'node_view',
'comment_insert',
'comment_update',
'comment_delete',
'comment_view',
),
),
'flag_comment_action' => array(
'type' => 'comment',
'label' => t('Flag (or unflag) a comment'),
'configurable' => TRUE,
'triggers' => array(
'comment_insert',
'comment_update',
'comment_delete',
'comment_view',
),
),
'flag_user_action' => array(
'type' => 'user',
'label' => t('Flag (or unflag) a user'),
'configurable' => TRUE,
'triggers' => array(
'user_insert',
'user_update',
'user_delete',
'user_login',
'user_logout',
'user_view',
),
),
);
}