You are here

function context_reaction::__construct in Context 6.3

Same name and namespace in other branches
  1. 6 plugins/context_reaction.inc \context_reaction::__construct()
  2. 7.3 plugins/context_reaction.inc \context_reaction::__construct()

Constructor. Do not override.

File

plugins/context_reaction.inc, line 31

Class

context_reaction
Base class for a context reaction.

Code

function __construct($plugin, $info) {
  $this->plugin = $plugin;
  $this->title = isset($info['title']) ? $info['title'] : $plugin;
  $this->description = isset($info['description']) ? $info['description'] : '';
}