23 lines
563 B
Plaintext
23 lines
563 B
Plaintext
<?php
|
|
|
|
/**
|
|
* @file
|
|
* Enable, install, update and uninstall functions for the breakpoint module.
|
|
*/
|
|
|
|
/**
|
|
* Implements hook_enable().
|
|
*
|
|
* Import breakpoints from all enabled themes.
|
|
*
|
|
* @todo: This should be removed if https://drupal.org/node/1813100 is resolved.
|
|
*/
|
|
function breakpoint_enable() {
|
|
// Import breakpoints from themes.
|
|
$themes = list_themes();
|
|
_breakpoint_theme_enabled(array_keys($themes));
|
|
|
|
// Import breakpoints from modules.
|
|
_breakpoint_modules_enabled(array_keys(drupal_container()->get('module_handler')->getModuleList()));
|
|
}
|