function 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

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());
}