function andromeda_slideshow_get_enabled_slideshows in Andromeda Slideshow 7
Same name and namespace in other branches
- 7.2 includes/andromeda_slideshow.inc \andromeda_slideshow_get_enabled_slideshows()
Returns a list of enabled slideshows
2 calls to andromeda_slideshow_get_enabled_slideshows()
- andromeda_slideshow_admin in includes/
andromeda_slideshow.admin.inc - Slideshow admin
- andromeda_slideshow_block_info in ./
andromeda_slideshow.module - Implements hook_block_info().
File
- includes/
andromeda_slideshow.inc, line 75 - Helper functions for Andromeda Slideshow
Code
function andromeda_slideshow_get_enabled_slideshows() {
$slideshows = andromeda_slideshow_load_slideshows();
//remove disabled slideshows
foreach ($slideshows as $sid => $slideshow) {
if (isset($slideshow->settings['status']) && $slideshow->settings['status'] == 0) {
unset($slideshows[$sid]);
}
}
return $slideshows;
}