You are here

function contextphp_condition_php::condition_form in Context PHP 7

Same name and namespace in other branches
  1. 6 plugins/contextphp_condition_php.inc \contextphp_condition_php::condition_form()

Our value is always TRUE. The PHP code in the options form descides if it validates or not on runtime.

Overrides context_condition::condition_form

File

plugins/contextphp_condition_php.inc, line 20
contextphp_condition_php.inc Adds php argument condition to Context

Class

contextphp_condition_php
PHP code as a Context condition.

Code

function condition_form($context) {
  $form['#type'] = 'value';
  $form['#value'] = TRUE;
  return $form;
}