function twitter_actions_set_status_action_submit in Twitter 7.4
Same name and namespace in other branches
- 6.5 twitter_actions/twitter_actions.module \twitter_actions_set_status_action_submit()
- 6.2 twitter_actions/twitter_actions.module \twitter_actions_set_status_action_submit()
- 6.3 twitter_actions/twitter_actions.module \twitter_actions_set_status_action_submit()
- 6.4 twitter_actions/twitter_actions.module \twitter_actions_set_status_action_submit()
- 7.6 twitter_actions/twitter_actions.module \twitter_actions_set_status_action_submit()
- 7.3 twitter_actions/twitter_actions.module \twitter_actions_set_status_action_submit()
- 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 83 - Exposes Drupal actions for sending Twitter messages.
Code
function twitter_actions_set_status_action_submit($form, $form_state) {
$form_values = $form_state['values'];
$twitter_uid = db_query("SELECT twitter_uid FROM {twitter_account} WHERE screen_name = :screen_name", array(
':screen_name' => $form_values['screen_name'],
))
->fetchField();
// Process the HTML form to store configuration. The keyed array that
// we return will be serialized to the database.
$params = array(
'twitter_uid' => $twitter_uid,
'screen_name' => $form_values['screen_name'],
'message' => $form_values['message'],
);
return $params;
}