You are here

function beautytips_drupal_help_admin_info in BeautyTips 8

Same name and namespace in other branches
  1. 6.2 includes/drupal_help.inc \beautytips_drupal_help_admin_info()
  2. 7.2 includes/drupal_help.inc \beautytips_drupal_help_admin_info()

File

includes/drupal_help.inc, line 3

Code

function beautytips_drupal_help_admin_info() {
  $form['beautytips_help'] = [
    '#type' => 'fieldset',
    '#title' => 'Help Link Tooltips',
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  ];
  $form['beautytips_help']['beautytips_drupal_help'] = [
    '#type' => 'checkbox',
    '#title' => 'Display Help link popups',
    '#default_value' => \Drupal::state()
      ->get('beautytips_drupal_help', FALSE),
  ];
  if (\Drupal::moduleHandler()
    ->moduleExists('advanced_help')) {
    $form['beautytips_help']['beautytips_advanced_help'] = [
      '#type' => 'checkbox',
      '#title' => 'Display Advanced Help link popups',
      '#default_value' => \Drupal::state()
        ->get('beautytips_advanced_help', FALSE),
    ];
  }
  return $form;
}