function devel_block_configure

Implements hook_block_configure().

File

./devel.module, line 824

Code

function devel_block_configure($delta) {
    if ($delta == 'switch_user') {
        $form['list_size'] = array(
            '#type' => 'textfield',
            '#title' => t('Number of users to display in the list'),
            '#default_value' => variable_get('devel_switch_user_list_size', 10),
            '#size' => '3',
            '#maxlength' => '4',
        );
        $form['include_anon'] = array(
            '#type' => 'checkbox',
            '#title' => t('Include %anonymous', array(
                '%anonymous' => format_username(drupal_anonymous_user()),
            )),
            '#default_value' => variable_get('devel_switch_user_include_anon', FALSE),
        );
        $form['show_form'] = array(
            '#type' => 'checkbox',
            '#title' => t('Allow entering any user name'),
            '#default_value' => variable_get('devel_switch_user_show_form', TRUE),
        );
        return $form;
    }
}