You are here

function fb_stream_node_settings_form_validate in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 6.3 fb_stream.module \fb_stream_node_settings_form_validate()
1 string reference to 'fb_stream_node_settings_form_validate'
fb_stream_node_settings_form in ./fb_stream.module
Helper function for hook_form_alter() renders the settings per node-type.

File

./fb_stream.module, line 383
Support for Facebook's Stream API.

Code

function fb_stream_node_settings_form_validate($form, &$form_state) {
  $values = $form_state['values'];
  if ($to_id = $values['fb_stream_to_']) {

    // Save the token for the facebook wall.
    form_set_value($form['fb_stream']['fb_stream_from_token_'], $form['#fb_stream_from_tokens'][$to_id], $form_state);
  }
}