context_condition_sitewide.inc

  1. cis7 sites/all/modules/ulmus/context/plugins/context_condition_sitewide.inc
  2. cle7 sites/all/modules/ulmus/context/plugins/context_condition_sitewide.inc
  3. ecd7 sites/all/modules/ulmus/context/plugins/context_condition_sitewide.inc
  4. elmsmedia7 sites/all/modules/ulmus/context/plugins/context_condition_sitewide.inc
  5. harmony7 sites/all/modules/ulmus/context/plugins/context_condition_sitewide.inc
  6. icor7 sites/all/modules/ulmus/context/plugins/context_condition_sitewide.inc
  7. meedjum_blog7 sites/all/modules/ulmus/context/plugins/context_condition_sitewide.inc
  8. mooc7 sites/all/modules/ulmus/context/plugins/context_condition_sitewide.inc

Classes

Namesort ascending Description
context_condition_sitewide Simple sitewide context, always present.

File

sites/all/modules/ulmus/context/plugins/context_condition_sitewide.inc
View source
  1. <?php
  2. /**
  3. * Simple sitewide context, always present.
  4. */
  5. class context_condition_sitewide extends context_condition {
  6. function condition_values() {
  7. return array(1 => t('Always active'));
  8. }
  9. function editor_form($context = NULL) {
  10. $form = parent::editor_form($context);
  11. $form[1]['#title'] = t('Always active');
  12. $form['#weight'] = -10;
  13. return $form;
  14. }
  15. function execute($value) {
  16. foreach ($this->get_contexts($value) as $context) {
  17. $this->condition_met($context, $value);
  18. }
  19. }
  20. }
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.