function context_condition::condition_used

cis7 context_condition.inc context_condition::condition_used()
cle7 context_condition.inc context_condition::condition_used()
elmsmedia7 context_condition.inc context_condition::condition_used()
icor7 context_condition.inc context_condition::condition_used()
meedjum_blog7 context_condition.inc context_condition::condition_used()
mooc7 context_condition.inc context_condition::condition_used()

Check whether this condition is used by any contexts. Can be used to prevent expensive condition checks from being triggered when no contexts use this condition.

8 calls to context_condition::condition_used()
context_condition_bookroot::execute in sites/all/modules/ulmus/context/plugins/context_condition_bookroot.inc
context_condition_context::execute in sites/all/modules/ulmus/context/plugins/context_condition_context.inc
Execute.
context_condition_context_all::execute in sites/all/modules/ulmus/context/plugins/context_condition_context_all.inc
Execute.
context_condition_menu::execute in sites/all/modules/ulmus/context/plugins/context_condition_menu.inc
Override of execute().
context_condition_node_taxonomy::execute in sites/all/modules/ulmus/context/plugins/context_condition_node_taxonomy.inc

... See full list

File

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

Class

context_condition
Base class for a context condition.

Code

function condition_used() {
  $map = context_condition_map();
  return !empty($map[$this->plugin]);
}