You are here

function context_addassets_context_registry in Context Add Assets 7

Same name and namespace in other branches
  1. 6 context_addassets.module \context_addassets_context_registry()

Implements hook_context_registry().

File

./context_addassets.module, line 217

Code

function context_addassets_context_registry() {
  $registry = array();
  $registry['reactions'] = array(
    // theme
    'css' => array(
      'plugin' => 'context_reaction_addcss',
    ),
    'js' => array(
      'plugin' => 'context_reaction_addjs',
    ),
    // module
    'css_module' => array(
      'plugin' => 'context_reaction_addcss_module',
    ),
    'js_module' => array(
      'plugin' => 'context_reaction_addjs_module',
    ),
    // file path
    'css_path' => array(
      'plugin' => 'context_reaction_addcss_path',
    ),
    'js_path' => array(
      'plugin' => 'context_reaction_addjs_path',
    ),
  );
  if (module_exists('less')) {
    $registry['reactions']['less'] = array(
      'plugin' => 'context_reaction_addless',
    );
  }
  return $registry;
}