You are here

function andromeda_slideshow_load_by_name in Andromeda Slideshow 7.2

Same name and namespace in other branches
  1. 7 andromeda_slideshow.module \andromeda_slideshow_load_by_name()

Loads a slideshow by its name

Parameters

$name: the name of the slideshow

Return value

object the slideshow

1 call to andromeda_slideshow_load_by_name()
andromeda_slideshow_block_view in ./andromeda_slideshow.module
Implements hook_block_view().

File

./andromeda_slideshow.module, line 261
Slideshow for the Andromeda (http://drupal.org/project/andromeda) Theme

Code

function andromeda_slideshow_load_by_name($name) {
  $slideshow = andromeda_slideshow_load_slideshows(array(
    $name,
  ), TRUE);
  return isset($slideshow[$name]) ? $slideshow[$name] : '';
}