You are here

function hook_domaininstall in Domain Access 5

Same name and namespace in other branches
  1. 6.2 API.php \hook_domaininstall()
  2. 7.2 domain.api.php \hook_domaininstall()

Some Domain modules require that settings.php be edited to add additional files during the bootstrap process.

This hook allows those modules to check to see if they have been installed correctly. Usually the module is enabled, but the required function is not.

See also

domain_conf_domaininstall()

Related topics

3 functions implement hook_domaininstall()

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

domain_conf_domaininstall in domain_conf/domain_conf.module
Implement hook_domaininstall()
domain_domaininstall in ./domain.module
Implement hook_domaininstall()
domain_prefix_domaininstall in domain_prefix/domain_prefix.module
Implement hook_domaininstall()
1 invocation of hook_domaininstall()
domain_configure in ./domain_admin.inc
Module settings and behaviors.

File

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

Code

function hook_domaininstall() {

  // If MyModule is being used, check to see that it is installed correctly.
  if (module_exists('mymodule') && !function_exists('_mymodule_load')) {
    drupal_set_message(t('MyModule is not installed correctly.  Please edit your settings.php file as described in <a href="!url">INSTALL.txt</a>', array(
      '!url' => drupal_get_path('module', 'mymodule') . '/INSTALL.txt',
    )));
  }
}