function hook_nivo_slider_theme_info in Nivo Slider 7
Same name and namespace in other branches
- 8 nivo_slider.api.php \hook_nivo_slider_theme_info()
Register slider themes.
This hook can be used to register themes for the slider. Themes will be displayed and made selectable on the slider options administration page.
Slider themes get a unique CSS class to use for styling and can specify an unlimited number of CSS and JS files to include when the slider is displayed.
1 function implements hook_nivo_slider_theme_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
2 invocations of hook_nivo_slider_theme_info()
- 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 21 - Hooks provided by the Nivo Slider module.
Code
function hook_nivo_slider_theme_info() {
return array(
'theme_name' => array(
'name' => t('Theme name'),
// Human readable theme name
'description' => t('Theme description.'),
// Description of the theme
'thumb_support' => TRUE,
// Theme supports thumbnail navigation
'resources' => array(
'css' => array(
drupal_get_path('module', 'module_name') . '/css/example.css',
// Full path to a CSS file to include with the theme
drupal_get_path('module', 'module_name') . '/css/demonstration.css',
),
'js' => array(
drupal_get_path('module', 'module_name') . '/js/example.css',
// Full path to a JS file to include with the theme
drupal_get_path('module', 'module_name') . '/js/demonstration.css',
),
),
),
);
}