You are here

function _adsense_managed_settings_validate in Google AdSense integration 5.3

Same name and namespace in other branches
  1. 6 managed/adsense_managed.admin.inc \_adsense_managed_settings_validate()
  2. 7 managed/adsense_managed.admin.inc \_adsense_managed_settings_validate()

Validate adsense_managed_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_id, $form_values, $form) {
  $number_blocks = $form_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"));
  }
}