1 block.update.inc DashboardUpdateBlock::formSubmit($form, &$form_state)

Submit handler to save the form settings.

Overrides Block::formSubmit

File

core/modules/dashboard/includes/block.update.inc, line 142
"Update" dashboard block.

Class

DashboardUpdateBlock

Code

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

  $this->settings['project_types'] = array_keys(array_filter($form_state['values']['project_types']));
}