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

Build the settings form for editing this block.

Overrides Block::form

File

core/modules/dashboard/includes/block.update.inc, line 218
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('Layout templates'),
    ),
    '#default_value' => $this->settings['project_types'],
  );
}