You are here

public static function AdminHookHandler::hookAdminSettingsValidate in Node expire 7.2

Validation for the administrative settings form.

Parameters

object $form: An associative array containing the structure of the form.

object $form_state: A keyed array containing the current state of the form.

1 call to AdminHookHandler::hookAdminSettingsValidate()
node_expire_admin_settings_validate in ./node_expire.admin.inc
Validation for the administrative settings form.

File

src/Module/Hook/AdminHookHandler.php, line 118
AdminHookHandler class.

Class

AdminHookHandler
AdminHookHandler class.

Namespace

Drupal\node_expire\Module\Hook

Code

public static function hookAdminSettingsValidate($form, &$form_state) {
  if ($form_state['values']['node_expire_date_entry_elements'] == 1 && $form_state['values']['node_expire_handle_content_expiry'] != 0 && !module_exists('date_popup')) {
    form_set_error('date_entry_elements', t('To use "Date popups" option Date module should be installed with Date Popup enabled.') . ' ' . t('This option is not available in legacy mode.'));
  }

  // End of node_expire_admin_settings_validate().
}