You are here

function devel_execute_block_form in Devel 6

Same name and namespace in other branches
  1. 7 devel.module \devel_execute_block_form()

Generates the execute block form.

1 string reference to 'devel_execute_block_form'
devel_block in ./devel.module
Implementation of hook_block().

File

./devel.module, line 1230

Code

function devel_execute_block_form() {
  $form['execute'] = array(
    '#type' => 'fieldset',
    '#title' => t('Execute PHP Code'),
    '#collapsible' => TRUE,
    '#collapsed' => !isset($_POST['code']),
  );
  $form['#submit'] = array(
    'devel_execute_form_submit',
  );
  return array_merge_recursive($form, devel_execute_form());
}