You are here

function twitter_actions_action_info in Twitter 7.4

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

Implements hook_action_info().

File

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

Code

function twitter_actions_action_info() {
  return array(
    'twitter_actions_set_status_action' => array(
      'type' => 'system',
      'label' => t('Post a message to Twitter'),
      'configurable' => TRUE,
      'triggers' => array(
        'node_view',
        'node_insert',
        'node_update',
        'node_delete',
        'comment_view',
        'comment_insert',
        'comment_update',
        'comment_delete',
        'user_view',
        'user_insert',
        'user_update',
        'user_delete',
        'user_login',
        'cron',
      ),
    ),
  );
}