You are here

function fb_actions_action_info in Drupal for Facebook 5

Same name and namespace in other branches
  1. 5.2 fb_actions.module \fb_actions_action_info()
  2. 6.2 contrib/fb_actions.module \fb_actions_action_info()

@file

Actions defined here interact with Facebook's API. This makes it possible to notify facebook of various activities as they happen.

File

./fb_actions.module, line 10
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_minifeed' => array(
      'type' => 'fb_action',
      'description' => t('Post to Facebook mini-feed'),
      'configurable' => TRUE,
      'hooks' => array(
        'nodeapi' => array(
          'delete',
          'insert',
          'update',
          'view',
        ),
        'comment' => array(
          'delete',
          'insert',
          'update',
          'view',
        ),
        'user' => array(
          'insert',
          'update',
          'delete',
          'login',
          'logout',
        ),
      ),
    ),
    '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',
        ),
      ),
    ),
  );
}