Retrieve a list of all available skins in the system.

2 calls to views_slideshow_plugin_style_slideshow::views_slideshow_get_skins()
views_slideshow_plugin_style_slideshow::options_form in ./views_slideshow_plugin_style_slideshow.inc
Build the settings form for the view.
views_slideshow_plugin_style_slideshow::options_submit in ./views_slideshow_plugin_style_slideshow.inc
Run any necessary actions on submit.

File

./views_slideshow_plugin_style_slideshow.inc, line 276

Class

views_slideshow_plugin_style_slideshow
Style plugin to render each item in a slideshow.

Code

public function views_slideshow_get_skins() {
    static $skins;
    if (empty($skins)) {
        $skins = array();
        // Call all modules that use hook_views_slideshow_skin_info.
        foreach (module_implements('views_slideshow_skin_info') as $module) {
            $skin_items = call_user_func($module . '_views_slideshow_skin_info');
            if (isset($skin_items) && is_array($skin_items)) {
                foreach (array_keys($skin_items) as $skin) {
                    // Ensure that the definition is complete, so we don't need lots
                    // of error checking later.
                    $skin_items[$skin] += array(
                        'class' => 'default',
                        'name' => t('Untitled skin'),
                        'module' => $module,
                        'path' => '',
                        'stylesheets' => array(),
                    );
                }
                $skins = array_merge($skins, $skin_items);
            }
        }
    }
    return $skins;
}