function fb_stream_node_form_validate in Drupal for Facebook 7.3
Same name and namespace in other branches
- 6.3 fb_stream.module \fb_stream_node_form_validate()
1 string reference to 'fb_stream_node_form_validate'
- fb_stream_form_alter in ./
fb_stream.module - Implements hook_form_alter().
File
- ./
fb_stream.module, line 392 - Support for Facebook's Stream API.
Code
function fb_stream_node_form_validate($form, &$form_state) {
$values = $form_state['values'];
if (($to_id = $values['fb_stream_to']) && count($form['#fb_stream_from_tokens'])) {
form_set_value($form['fb_stream']['fb_stream_from_token'], $form['#fb_stream_from_tokens'][$to_id], $form_state);
}
}