You are here

function twitter_actions_set_status_action_submit in Twitter 7.6

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

Submits the form and sets the twitter account pulling the data from the twitter_account table.

File

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

Code

function twitter_actions_set_status_action_submit($form, $form_state) {
  $form_values = $form_state['values'];

  // Process the HTML form to store configuration. The keyed array that
  // we return will be serialized to the database.
  $params = array(
    'screen_name' => $form_values['screen_name'],
    'message' => $form_values['message'],
  );
  return $params;
}