function fb_admin_settings_validate in Drupal for Facebook 7.3
Same name and namespace in other branches
- 6.3 fb.admin.inc \fb_admin_settings_validate()
Validates the settings form.
File
- ./
fb.admin.inc, line 486 - Admin pages and forms for Drupal for Facebook.
Code
function fb_admin_settings_validate($form, &$form_state) {
$values = $form_state['values'];
if (!$values[FB_VAR_USE_COOKIE] && !$values[FB_VAR_USE_SESSION]) {
form_set_error('fb_admin_session][' . FB_VAR_USE_SESSION, t('You must select either the FB Cookie option, the store token in session option, or both.'));
form_set_error('fb_admin_session][' . FB_VAR_USE_COOKIE);
}
}