function facebook_album_admin_form_validate in Facebook Album 7.3
Same name and namespace in other branches
- 7.2 facebook_album.admin.inc \facebook_album_admin_form_validate()
Implements hook_validate()
File
- ./
facebook_album.admin.inc, line 92 - facebook_album.admin.inc Facebook Album administration pages.
Code
function facebook_album_admin_form_validate($form, &$form_state) {
$app_secret = $form_state['values']['facebook_album_appSecret'];
$stored_app_secret = variable_get('facebook_album_appSecret');
if (empty($stored_app_secret) && empty($app_secret)) {
form_set_error('facebook_album_appSecret', t("Missing Application Secret"));
}
}