function context_condition_path::condition_form

cis7 context_condition_path.inc context_condition_path::condition_form($context)
cle7 context_condition_path.inc context_condition_path::condition_form($context)
elmsmedia7 context_condition_path.inc context_condition_path::condition_form($context)
icor7 context_condition_path.inc context_condition_path::condition_form($context)
meedjum_blog7 context_condition_path.inc context_condition_path::condition_form($context)
mooc7 context_condition_path.inc context_condition_path::condition_form($context)

Condition form.

Overrides context_condition::condition_form

File

sites/all/modules/ulmus/context/plugins/context_condition_path.inc, line 17

Class

context_condition_path
Expose paths as a context condition.

Code

function condition_form($context) {
  $form = parent::condition_form($context);
  unset($form['#options']);

  $form['#type'] = 'textarea';
  $form['#default_value'] = implode("\n", $this->fetch_from_context($context, 'values'));
  return $form;
}
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.