function ca_condition_custom_php_form in Ubercart 6.2
See also
File
- ca/
ca.ca.inc, line 385 - This file includes some generic conditions and actions.
Code
function ca_condition_custom_php_form($form_state, $settings = array(), $arguments = array()) {
$form['variables'] = _ca_custom_php_variables_table($arguments);
$form['php'] = array(
'#type' => 'textarea',
'#title' => t('Custom PHP'),
'#description' => t('Enter the custom PHP to be evaluated when this condition is executed. Should not include <?php ?> delimiters.'),
'#default_value' => isset($settings['php']) ? $settings['php'] : '',
'#wysiwyg' => FALSE,
);
return $form;
}