1.20.x block.update.inc DashboardUpdateBlock::form(&$form, &$form_state)

Build the settings form for editing this block.

Overrides Block::form

File

modules/dashboard/includes/block.update.inc, line 211
Available Updates dashboard block.

Class

DashboardUpdateBlock

Code

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

  if (!module_exists('update')) {
    return $form;
  }

  $form['project_types'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Display information about updates to the following'),
    '#multiple' => TRUE,
    '#options' => array(
      'core' => t('Backdrop core'),
      'module' => t('Modules'),
      'theme' => t('Themes'),
      'layout' => t('Layouts'),
    ),
    '#default_value' => $this->settings['project_types'],
  );
}