You are here

function ca_action_custom_php_form in Ubercart 6.2

See also

ca_action_custom_php()

File

ca/ca.ca.inc, line 461
This file includes some generic conditions and actions.

Code

function ca_action_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 action is executed.  Should not include <?php ?> delimiters.'),
    '#default_value' => isset($settings['php']) ? $settings['php'] : '',
    '#wysiwyg' => FALSE,
  );
  return $form;
}