You are here

function hook_domain_warning in Domain Access 7.3

Allows a warning message to be printed when entering specific forms that may have values that vary on each domain.

Return value

An associative array where the keys form_id values representing forms that require warnings. The value should return a link for where the form may be set for the current domain. If no link exists, you should pass NULL as the value.

These values are subject to token replacement, using the syntax %value, where %NAME may be any element of the $_domain array.

Related topics

2 functions implement hook_domain_warning()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

domain_conf_domain_warning in domain_conf/domain_conf.domain.inc
Implements hook_domain_warning().
domain_theme_domain_warning in domain_theme/domain_theme.domain.inc
Implements hook_domain_warning().
1 invocation of hook_domain_warning()
domain_warning_check in ./domain.module
Sets a message to the site admin.

File

./domain.api.php, line 229
API documentation file.

Code

function hook_domain_warning() {

  // These are the forms for variables set by Domain Conf.
  $forms = array(
    'system_admin_theme_settings',
    'system_date_time_settings',
    'system_site_information_settings',
    'system_site_maintenance_settings',
  );
  $return = array();
  foreach ($forms as $key) {
    $return[$key] = 'admin/build/domain/path/%domain_id';
  }
  return $return;
}