ctools_init

  1. drupal
    1. 6 ctools.module function
    2. 7 ctools.module function
Drupal 7 ctools_init()

Implement hook_init to keep our global CSS at the ready.

File

sites/all/modules/ctools/ctools.module, line 376
CTools primary module file.

Code

function ctools_init() {
  ctools_add_css('ctools');
  // If we are sure that CTools' AJAX is in use, change the error handling.
  if (!empty($_REQUEST['ctools_ajax'])) {
    ini_set('display_errors', 0);
    register_shutdown_function('ctools_shutdown_handler');
  }

  // Clear plugin cache on the module page submit.
  if ($_GET['q'] == 'admin/modules/list/confirm' && !empty($_POST)) {
    cache_clear_all('ctools_plugin_files:', 'cache', TRUE);
  }
}