function context_addassets_context_plugins in Context Add Assets 7
Same name and namespace in other branches
- 6 context_addassets.module \context_addassets_context_plugins()
Implements hook_context_plugins().
File
- ./
context_addassets.module, line 132
Code
function context_addassets_context_plugins() {
$plugins = array();
/**
* Reactions
*/
// Theme Assets
// - CSS
$plugins['context_reaction_addcss'] = array(
'handler' => array(
'path' => drupal_get_path('module', 'context_addassets') . '/plugins',
'file' => 'context_reaction_addcss.inc',
'class' => 'context_reaction_addcss',
'parent' => 'context_reaction',
),
);
// - LESS
if (module_exists('less')) {
$plugins['context_reaction_addless'] = array(
'handler' => array(
'path' => drupal_get_path('module', 'context_addassets') . '/plugins',
'file' => 'context_reaction_addless.inc',
'class' => 'context_reaction_addless',
'parent' => 'context_reaction',
),
);
}
// - JS
$plugins['context_reaction_addjs'] = array(
'handler' => array(
'path' => drupal_get_path('module', 'context_addassets') . '/plugins',
'file' => 'context_reaction_addjs.inc',
'class' => 'context_reaction_addjs',
'parent' => 'context_reaction',
),
);
// Module Assets
// - CSS
$plugins['context_reaction_addcss_module'] = array(
'handler' => array(
'path' => drupal_get_path('module', 'context_addassets') . '/plugins',
'file' => 'context_reaction_addcss_module.inc',
'class' => 'context_reaction_addcss_module',
'parent' => 'context_reaction',
),
);
// - JS
$plugins['context_reaction_addjs_module'] = array(
'handler' => array(
'path' => drupal_get_path('module', 'context_addassets') . '/plugins',
'file' => 'context_reaction_addjs_module.inc',
'class' => 'context_reaction_addjs_module',
'parent' => 'context_reaction',
),
);
// File Path Assets
// - CSS
$plugins['context_reaction_addcss_path'] = array(
'handler' => array(
'path' => drupal_get_path('module', 'context_addassets') . '/plugins',
'file' => 'context_reaction_addcss_path.inc',
'class' => 'context_reaction_addcss_path',
'parent' => 'context_reaction',
),
);
// - JS
$plugins['context_reaction_addjs_path'] = array(
'handler' => array(
'path' => drupal_get_path('module', 'context_addassets') . '/plugins',
'file' => 'context_reaction_addjs_path.inc',
'class' => 'context_reaction_addjs_path',
'parent' => 'context_reaction',
),
);
return $plugins;
}