array( 'cleanurls' => (bool) variable_get('clean_url', '0'), 'basePath' => base_path(), ), ), 'setting'); $core_sent = TRUE; } if (is_array($files)) { foreach ($files as $file) { drupal_add_js($file); } } else { drupal_add_js($files); } } /** * Load theme-specific data. * * Allows loading e.g. of theme-specific jQuery selectors. * To avoid having to prematurely initialize the theme, call * this function from a hook_footer() implementation. hook_footer() * typically is called after the theme has been initiated, but * before the header has been generated. */ function jstools_theme_data($module) { global $theme; // Initialize theme if necessary. if (!isset($theme)) { init_theme(); } $file = drupal_get_path('module', $module) .'/theme/'. $theme .'.inc'; if (file_exists($file)) { include_once $file; $data = module_invoke($module, 'theme_data'); } else { $data = array(); } return $data; }