You are here

function rules_execute_php_eval_form_alter in Rules 7.2

Alter the form for improved UX.

Related topics

File

modules/php.rules.inc, line 72
Rules integration for the php module.

Code

function rules_execute_php_eval_form_alter(&$form, &$form_state) {

  // Remove the PHP evaluation help to avoid confusion whether <?php tags should
  // be used. But keep the help about available variables.
  $form['parameter']['code']['settings']['help']['php']['#type'] = 'container';
  $form['parameter']['code']['settings']['help']['php']['top']['#markup'] = t('The following variables are available and may be used by your PHP code:');
}