You are here

function andromeda_slideshow_get_disabled_slideshows in Andromeda Slideshow 7

Same name and namespace in other branches
  1. 7.2 includes/andromeda_slideshow.inc \andromeda_slideshow_get_disabled_slideshows()

Returns a list of disabled slideshows

1 call to andromeda_slideshow_get_disabled_slideshows()
andromeda_slideshow_admin in includes/andromeda_slideshow.admin.inc
Slideshow admin

File

includes/andromeda_slideshow.inc, line 91
Helper functions for Andromeda Slideshow

Code

function andromeda_slideshow_get_disabled_slideshows() {
  $slideshows = andromeda_slideshow_load_slideshows();

  //remove enabled slideshows
  foreach ($slideshows as $sid => $slideshow) {
    if ($slideshow->settings['status'] == 1) {
      unset($slideshows[$sid]);
    }
  }
  return $slideshows;
}