You are here

function rules_condition_custom_php_submit in Rules 6

Execute custom php code action configuration form.

Related topics

File

rules/modules/php.rules_forms.inc, line 102
Rules configuration forms for the php module

Code

function rules_condition_custom_php_submit(&$settings, $form, $form_state) {
  $variables = $form_state['proxy']
    ->get_available_variables($form_state['element']['#id']);
  $settings['vars'] = rules_input_evaluator_php_prepare('<?' . $settings['code'], $variables);
}