You are here

function hook_nivo_slider_theme_info_alter in Nivo Slider 8

Same name and namespace in other branches
  1. 7 nivo_slider.api.php \hook_nivo_slider_theme_info_alter()

Alter slider themes.

Parameters

array $themes: The associative array of theme information from hook_nivo_slider_theme_info().

See also

hook_nivo_slider_theme_info()

2 invocations of hook_nivo_slider_theme_info_alter()
NivoSliderSliderBlock::build in src/Plugin/Block/NivoSliderSliderBlock.php
Implements \Drupal\block\BlockBase::build().
SlideOptionsConfigurationForm::buildForm in src/Form/SlideOptionsConfigurationForm.php
Form constructor.

File

./nivo_slider.api.php, line 55
Hooks provided by the Nivo Slider module.

Code

function hook_nivo_slider_theme_info_alter(array &$themes) {

  // Modify the default theme's name and description.
  $themes['default']['name'] = t('My theme');
  $themes['default']['description'] = t('An excellent theme to appropriate for your own use!');

  // Disable thumbnail support.
  $themes['light']['thumb_support'] = FALSE;

  // Replace the default theme styling.
  $themes['dark']['resources']['css'] = drupal_get_path('module', 'my_module') . '/my_theme.css';
}