You are here

function twitter_actions_action_info in Twitter 6.2

Same name and namespace in other branches
  1. 6.5 twitter_actions/twitter_actions.module \twitter_actions_action_info()
  2. 6.3 twitter_actions/twitter_actions.module \twitter_actions_action_info()
  3. 6.4 twitter_actions/twitter_actions.module \twitter_actions_action_info()
  4. 7.6 twitter_actions/twitter_actions.module \twitter_actions_action_info()
  5. 7.3 twitter_actions/twitter_actions.module \twitter_actions_action_info()
  6. 7.4 twitter_actions/twitter_actions.module \twitter_actions_action_info()
  7. 7.5 twitter_actions/twitter_actions.module \twitter_actions_action_info()

Implementation of hook_action_info().

File

twitter_actions/twitter_actions.module, line 11
Exposes Drupal actions for sending Twitter messages.

Code

function twitter_actions_action_info() {
  return array(
    'twitter_actions_set_status_action' => array(
      'type' => 'system',
      'description' => t('Post a message to Twitter'),
      'configurable' => TRUE,
      'hooks' => array(
        'nodeapi' => array(
          'view',
          'insert',
          'update',
          'delete',
        ),
        'comment' => array(
          'view',
          'insert',
          'update',
          'delete',
        ),
        'user' => array(
          'view',
          'insert',
          'update',
          'delete',
          'login',
        ),
        'cron' => array(
          'run',
        ),
      ),
    ),
  );
}