function fb_actions_action_info in Drupal for Facebook 5.2
Same name and namespace in other branches
- 5 fb_actions.module \fb_actions_action_info()
- 6.2 contrib/fb_actions.module \fb_actions_action_info()
Implemntation of hook_action_info()
File
- ./
fb_actions.module, line 12 - Actions defined here interact with Facebook's API. This makes it possible to notify facebook of various activities as they happen.
Code
function fb_actions_action_info() {
return array(
'fb_actions_profile_fbml' => array(
'type' => 'fb_action',
'description' => t('Write to Facebook profile'),
'configurable' => TRUE,
'hooks' => array(
'nodeapi' => array(
'delete',
'insert',
'update',
'view',
),
'comment' => array(
'delete',
'insert',
'update',
'view',
),
'user' => array(
'insert',
'update',
'delete',
'login',
'logout',
),
'cron' => array(
'run',
),
),
),
'fb_actions_ref_fbml' => array(
'type' => 'fb_action',
'description' => t('Write to Facebook reference FBML'),
'configurable' => TRUE,
'hooks' => array(
'nodeapi' => array(
'delete',
'insert',
'update',
'view',
),
'comment' => array(
'delete',
'insert',
'update',
'view',
),
'user' => array(
'insert',
'update',
'delete',
'login',
'logout',
),
'cron' => array(
'run',
),
),
),
'fb_actions_cron_per_user' => array(
'type' => 'fb_app',
'description' => t('Perform an Action once for each user of a Facebook App'),
'configurable' => TRUE,
'hooks' => array(
'cron' => array(
'run',
),
),
),
);
}