function filter_library in Editor 7
Implements hook_library() on behalf of filter.module.
Filter does not register its own assets as libraries, so we do so here.
File
- includes/
editor.filter.inc, line 13 - Declares hooks on behalf of filter.module.
Code
function filter_library() {
$path = drupal_get_path('module', 'editor');
$libraries['filter'] = array(
'version' => VERSION,
'js' => array(
$path . '/js/filter/filter.js' => array(),
),
'css' => array(
$path . '/css/filter/filter.css' => array(),
),
'dependencies' => array(
array(
'system',
'drupal.ajax',
),
),
);
$libraries['filter.filtered_html.admin'] = array(
'version' => VERSION,
'js' => array(
$path . '/js/filter/filter.filtered_html.admin.js' => array(
'group' => JS_THEME,
'aggregate' => FALSE,
),
),
'dependencies' => array(
array(
'filter',
'filter.admin',
),
),
);
// Filter admin is put in the JS_THEME group to force it after tabledrag.js.
$libraries['filter.admin'] = array(
'version' => VERSION,
'js' => array(
$path . '/js/filter/filter.admin.js' => array(
'group' => JS_THEME,
'aggregate' => FALSE,
),
),
'css' => array(
$path . '/css/filter/filter.css' => array(),
),
);
return $libraries;
}