You are here

context_reaction_addjs.inc in Context Add Assets 6

Same filename and directory in other branches
  1. 7 plugins/context_reaction_addjs.inc

The Context reaction plugin to add JS files

Contextually add JS files to any page on your site.

File

plugins/context_reaction_addjs.inc
View source
<?php

/**
 * @file
 * The Context reaction plugin to add JS files
 *
 * Contextually add JS files to any page on your site.
 */

// Load the base Add Assets Reaction class
if (!class_exists('context_reaction_addassets_base')) {
  module_load_include('inc', 'context_addassets', 'plugins/context_reaction_addassets_base');
}

/**
 * Expose themes as context reactions.
 */
class context_reaction_addjs extends context_reaction_addassets_base {
  var $search_scope;
  function __construct($plugin, $info) {
    parent::__construct($plugin, $info);
    $this->title = t('JS from Themes');
    $this->search_type = 'js';
  }

}

Classes

Namesort descending Description
context_reaction_addjs Expose themes as context reactions.