function contextphp_condition_php::options_form in Context PHP 6
Same name and namespace in other branches
- 7 plugins/contextphp_condition_php.inc \contextphp_condition_php::options_form()
File
- plugins/
contextphp_condition_php.inc, line 26
Class
- contextphp_condition_php
- PHP code as a Context condition.
Code
function options_form($context) {
$defaults = $this
->fetch_from_context($context, 'options');
return array(
'phpcode' => array(
'#type' => 'textarea',
'#title' => t('PHP code'),
'#description' => t('Enter PHP code that returns TRUE if the condition shall be met. Do not use <?php ?>.'),
'#default_value' => $defaults['phpcode'],
),
);
}