You are here

function devel_execute_form in Devel 5

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

Generates the execute block form.

2 string references to 'devel_execute_form'
devel_block in ./devel.module
Implementation of hook_block().
devel_menu in ./devel.module
Implementation of hook_menu().

File

./devel.module, line 822

Code

function devel_execute_form() {
  $form['code'] = array(
    '#type' => 'textarea',
    '#title' => t('PHP code to execute'),
    '#description' => t('Enter some code. Do not use <code>&lt;?php ?&gt;</code> tags.'),
  );
  $form['op'] = array(
    '#type' => 'submit',
    '#value' => t('Execute'),
  );
  $form['#redirect'] = FALSE;
  $form['#skip_duplicate_check'] = TRUE;
  return $form;
}