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]);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.