You are here

function fb_admin_replace_token_form_validate in Drupal for Facebook 7.4

1 string reference to 'fb_admin_replace_token_form_validate'
fb_admin_replace_token_form in ./fb.admin.inc

File

./fb.admin.inc, line 245

Code

function fb_admin_replace_token_form_validate($form, &$form_state) {
  $values = $form_state['values'];
  if ($values['fb_admin_token_select'] && $values['fb_admin_token_select'] != -1 && $values['fb_admin_token_generate'] && $values['fb_admin_token_generate'] != -1) {
    form_error($form[fb_admin_token_select], t('Select either a saved token or a new token.  Not both.'));
  }
}