You are here

function twitter_actions_set_status_action_validate in Twitter 6.3

Same name and namespace in other branches
  1. 6.2 twitter_actions/twitter_actions.module \twitter_actions_set_status_action_validate()
  2. 7.3 twitter_actions/twitter_actions.module \twitter_actions_set_status_action_validate()

Implements hook_actions_set_status_action_validate()

File

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

Code

function twitter_actions_set_status_action_validate($form, $form_state) {
  if (!_twitter_use_oauth()) {
    form_set_error('screen_name', t('Oauth has not been setup yet. Please go to !link and follow steps.', array(
      '!link' => l(t('Twitter settings'), 'admin/settings/twitter'),
    )));
  }
}