function hook_enable

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 system.api.php hook_enable()
cle7 system.api.php hook_enable()
elmsmedia7 system.api.php hook_enable()
icor7 system.api.php hook_enable()
meedjum_blog7 system.api.php hook_enable()
mooc7 system.api.php hook_enable()

Perform necessary actions after module is enabled.

The hook is called every time the module is enabled. It should be implemented in the module's .install file. The implementation can rely on the .module file being loaded.

See also

module_enable()

hook_install()

hook_modules_enabled()

Related topics

50 functions implement hook_enable()

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

advagg_enable in sites/all/modules/ulmus/advagg/advagg.install
Implements hook_enable().
boost_enable in sites/all/modules/ulmus/boost/boost.install
Implements hook_enable().
comment_enable in modules/comment/comment.install
Implements hook_enable().
ctools_export_crud_enable in sites/all/modules/ulmus/ctools/includes/export.inc
Enable a certain object.
dashboard_enable in modules/dashboard/dashboard.install
Implements hook_enable().

... See full list

1 invocation of hook_enable()
module_enable in includes/module.inc
Enables or installs a given list of modules.

File

modules/system/system.api.php, line 3559
Hooks provided by Drupal core and the System module.

Code

function hook_enable() {
  mymodule_cache_rebuild();
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.