Skip to content

Commit

Permalink
Corrects error message spelling and removes old cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
petemcw committed Sep 20, 2016
1 parent 247c287 commit a764770
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions theme-settings.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

/**
* @file
* Custom theme settings.
Expand Down Expand Up @@ -45,15 +44,6 @@ function fett_form_system_theme_settings_alter(&$form, FormStateInterface $form_
// various other places.
$theme_regions = system_region_list($theme, $show = REGIONS_VISIBLE);

// Active themes active blocks
// $block_module = \Drupal::moduleHandler()->moduleExists('breakpoint');
// if ($block_module == TRUE) {
// $theme_blocks = \Drupal::entityTypeManager()->getStorage('block')->loadByProperties(['theme' => $theme]);
// }
// else {
// $theme_blocks = NULL;
// }

// Check for breakpoints module and set a warning and a flag to disable much
// of the theme settings if its not available.
$breakpoints_module = \Drupal::moduleHandler()->moduleExists('breakpoint');
Expand Down Expand Up @@ -89,7 +79,7 @@ function fett_form_system_theme_settings_alter(&$form, FormStateInterface $form_

// Fett Core
if ($theme == 'fett') {
drupal_set_message(t('Fett has no configuration and cannot be used as a front end theme - it is a base them only. Use <b>drush fett</b> to generate or clone a theme to get started.'), 'error');
drupal_set_message(t('Fett has no configuration and cannot be used as a front-end theme - it is a base theme only. Use <b>drush fett</b> to generate or clone a theme to get started.'), 'error');

// Hide form items.
$form['theme_settings']['#attributes']['class'] = array('visually-hidden');
Expand Down

0 comments on commit a764770

Please sign in to comment.