function flag_action_info in Flag 6.2
Same name and namespace in other branches
- 7.3 includes/flag.actions.inc \flag_action_info()
- 7.2 includes/flag.actions.inc \flag_action_info()
Implementation of hook_action_info().
File
- includes/
flag.actions.inc, line 36 - Hooks for flag actions.
Code
function flag_action_info() {
return array(
'flag_node_action' => array(
'type' => 'node',
'description' => t('Flag (or unflag) a node'),
'configurable' => TRUE,
'hooks' => array(
'node' => array(
'view',
'presave',
'insert',
'update',
'delete',
'view',
),
'comment' => array(
'insert',
'update',
'delete',
'view',
),
),
),
'flag_comment_action' => array(
'type' => 'comment',
'description' => t('Flag (or unflag) a comment'),
'configurable' => TRUE,
'hooks' => array(
'comment' => array(
'insert',
'update',
'delete',
'view',
),
),
),
'flag_user_action' => array(
'type' => 'user',
'description' => t('Flag (or unflag) a user'),
'configurable' => TRUE,
'hooks' => array(
'user' => array(
'insert',
'update',
'delete',
'login',
'logout',
'view',
),
),
),
);
}