1 block.overview_user.inc DashboardOverviewUserBlock::formSubmit($form, &$form_state)

Submit handler to save the form settings.

Overrides Block::formSubmit

File

core/modules/dashboard/includes/block.overview_user.inc, line 172
Dashboard block displaying information about user accounts, including:

Class

DashboardOverviewUserBlock
@file

Code

function formSubmit($form, &$form_state) {
  parent::formSubmit($form, $form_state);

  $this->settings['roles'] = array_keys(array_filter($form_state['values']['roles']));
  $this->settings['user_counts'] = (bool) $form_state['values']['user_counts'];
  $this->settings['user_counts_active'] = (bool) $form_state['values']['user_counts_active'];
  $this->settings['user_counts_blocked'] = (bool) $form_state['values']['user_counts_blocked'];
}