function patterns_init in Patterns 5
File
- ./
patterns.module, line 1266 - Enables extremely simple adding/removing features to your site with minimal to no configuration
Code
function patterns_init() {
if (variable_get('patterns_form_helper', true) && $_SESSION['patterns_form_helper']) {
drupal_add_css(drupal_get_path('module', 'patterns') . '/patterns.css');
drupal_add_js(drupal_get_path('module', 'patterns') . '/patterns.js');
}
}