You are here

function admin_select_block_form in Administration Menu select 7

Same name and namespace in other branches
  1. 6 includes/block.inc \admin_select_block_form()

Administration Menu select block form.

1 string reference to 'admin_select_block_form'
admin_select_block_view in ./admin_select.module
Implements hook_block_view().

File

./admin_select.module, line 288
Core functionality for Administration Menu select module.

Code

function admin_select_block_form($form, &$form_state, $options) {
  $form['admin_select'] = array(
    '#type' => 'select',
    '#options' => array(
      '' => t('None'),
    ) + $options,
    '#default_value' => isset($GLOBALS['user']->data['admin_select']) ? $GLOBALS['user']->data['admin_select'] : '',
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Switch'),
  );
  return $form;
}