function _adsense_managed_settings_validate in Google AdSense integration 6
Same name and namespace in other branches
- 5.3 managed/adsense_managed.admin.inc \_adsense_managed_settings_validate()
- 7 managed/adsense_managed.admin.inc \_adsense_managed_settings_validate()
Validate adsense_managed_settings form.
1 string reference to '_adsense_managed_settings_validate'
- adsense_managed_settings in managed/
adsense_managed.admin.inc - Menu callback for the adsense_managed module settings form.
File
- managed/
adsense_managed.admin.inc, line 54 - Contains the administrative functions of the adsense_managed module.
Code
function _adsense_managed_settings_validate($form, &$form_state) {
$number_blocks = $form_state['values']['adsense_managed_number_blocks'];
if ($number_blocks < 0) {
form_set_error('adsense_managed_number_blocks', t("Number of blocks can't be a negative number"));
}
}