You are here

function hook_nivo_slider_theme_info_alter in Nivo Slider 7

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

Alter slider themes.

Parameters

$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()
nivo_slider_block_view in ./nivo_slider.module
Implements hook_block_view().
nivo_slider_option_configuration_form in ./nivo_slider_options.admin.inc
Configuration form for slider options.

File

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

Code

function hook_nivo_slider_theme_info_alter(&$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';
}