function devel_execute_block_form in Devel 7
Same name and namespace in other branches
- 6 devel.module \devel_execute_block_form()
Generates the execute block form.
1 string reference to 'devel_execute_block_form'
- devel_block_view in ./
devel.module - Implements hook_block_view().
File
- ./
devel.module, line 1418 - This module holds functions useful for Drupal development.
Code
function devel_execute_block_form() {
$form['execute'] = array(
'#type' => 'fieldset',
'#title' => t('Execute PHP Code'),
'#collapsible' => TRUE,
'#collapsed' => !isset($_SESSION['devel_execute_code']),
);
$form['#submit'] = array(
'devel_execute_form_submit',
);
return array_merge_recursive($form, devel_execute_form());
}