function context_condition::__construct

cis7 context_condition.inc context_condition::__construct($plugin, $info)
cle7 context_condition.inc context_condition::__construct($plugin, $info)
elmsmedia7 context_condition.inc context_condition::__construct($plugin, $info)
icor7 context_condition.inc context_condition::__construct($plugin, $info)
meedjum_blog7 context_condition.inc context_condition::__construct($plugin, $info)
mooc7 context_condition.inc context_condition::__construct($plugin, $info)

Constructor. Do not override.

File

sites/all/modules/ulmus/context/plugins/context_condition.inc, line 32

Class

context_condition
Base class for a context condition.

Code

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