You are here

function contextphp_condition_php::condition_form in Context PHP 6

Same name and namespace in other branches
  1. 7 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.

File

plugins/contextphp_condition_php.inc, line 16

Class

contextphp_condition_php
PHP code as a Context condition.

Code

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