1 dashboard.module dashboard_admin_settings()

Menu callback; Dashboard settings form.


core/modules/dashboard/dashboard.module, line 270
Provides an administrative dashboard.


function dashboard_admin_settings() {
  $config = config('dashboard.settings');
  // Redirect on log in.
  $form['#config'] = 'dashboard.settings';
  $form['dashboard_login_redirect'] = array(
    '#type' => 'checkbox',
    '#title' => t('Redirect administrators to Dashboard after log in'),
    '#default_value' => $config->get('dashboard_login_redirect'),
    '#description' => t('User accounts with the !permission permission will be automatically redirected to the Dashboard when they log in.', array(
      '!permission' => l(t('Access dashboard'), 'admin/config/people/permissions', array('fragment' => 'module-dashboard')),
  return system_settings_form($form);