function devel_execute_form in Devel 6
Same name and namespace in other branches
- 5 devel.module \devel_execute_form()
- 7 devel.module \devel_execute_form()
Generates the execute form.
1 call to devel_execute_form()
- devel_execute_block_form in ./
devel.module - Generates the execute block form.
1 string reference to 'devel_execute_form'
- devel_menu in ./
devel.module - Implementation of hook_menu().
File
- ./
devel.module, line 1244
Code
function devel_execute_form() {
drupal_add_css(drupal_get_path('module', 'devel') . '/devel.css');
$form['execute']['code'] = array(
'#type' => 'textarea',
'#title' => t('PHP code to execute'),
'#description' => t('Enter some code. Do not use <code><?php ?></code> tags.'),
'#rows' => 20,
);
$form['execute']['op'] = array(
'#type' => 'submit',
'#value' => t('Execute'),
);
$form['#redirect'] = FALSE;
$form['#skip_duplicate_check'] = TRUE;
return $form;
}