1.20.x dashboard.module dashboard_admin_settings()

Menu callback; Dashboard settings form.

File

modules/dashboard/dashboard.module, line 271
Provides an administrative dashboard.

Code

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