You are here

function domain_settings_domain_warnings_alter in Domain Access 6.2

Same name and namespace in other branches
  1. 7.2 domain_settings/domain_settings.module \domain_settings_domain_warnings_alter()

Implement hook_domain_warnings_alter().

File

domain_settings/domain_settings.module, line 292
Allows domain-specific use of Drupal system settings forms.

Code

function domain_settings_domain_warnings_alter(&$forms) {

  // Forms which Domain Settings handles and are set as warnings.
  $core_forms = array(
    'system_admin_theme_settings',
    'system_site_information_settings',
    'system_site_maintenance_settings',
    'menu_configure',
  );
  foreach ($core_forms as $form_id) {
    if (isset($forms[$form_id])) {
      unset($forms[$form_id]);
    }
  }
}