You are here

function devel_execute_form_submit in Devel 7

Same name and namespace in other branches
  1. 5 devel.module \devel_execute_form_submit()
  2. 6 devel.module \devel_execute_form_submit()

Processes PHP execute form submissions.

1 string reference to 'devel_execute_form_submit'
devel_execute_block_form in ./devel.module
Generates the execute block form.

File

./devel.module, line 1459
This module holds functions useful for Drupal development.

Code

function devel_execute_form_submit($form, &$form_state) {
  ob_start();
  print eval($form_state['values']['code']);
  $_SESSION['devel_execute_code'] = $form_state['values']['code'];
  dsm(ob_get_clean());
}