function fblikebutton_config_form_validate in Facebook Like Button 6.2
Same name and namespace in other branches
- 7.2 fblikebutton.admin.inc \fblikebutton_config_form_validate()
Validation handler for fblikebutton_dynamic_settings form.
2 string references to 'fblikebutton_config_form_validate'
- fblikebutton_dynamic_settings in ./
fblikebutton.admin.inc - Settings for the dynamic FB button in full node viewmode and teaser viewmode.
- fblikebutton_static_settings in ./
fblikebutton.admin.inc - Settings for the static FB Like button block.
File
- ./
fblikebutton.admin.inc, line 233 - Admin functions for fblikebutton.
Code
function fblikebutton_config_form_validate($form, &$form_state) {
// Convert the show faces options into booleans.
if (isset($form_state['values']['fblikebutton_show_faces'])) {
$form_state['values']['fblikebutton_show_faces'] = $form_state['values']['fblikebutton_show_faces'] == 'show' ? TRUE : FALSE;
}
if (isset($form_state['values']['fblikebutton_bl_show_faces'])) {
$form_state['values']['fblikebutton_bl_show_faces'] = $form_state['values']['fblikebutton_bl_show_faces'] == 'show' ? TRUE : FALSE;
}
}