You are here

function andromeda_slideshow_block_info in Andromeda Slideshow 7.2

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

Implements hook_block_info().

File

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

Code

function andromeda_slideshow_block_info() {

  //load helper functions
  ctools_include('andromeda_slideshow', 'andromeda_slideshow');
  $info = array();
  $slideshows = andromeda_slideshow_get_enabled_slideshows();

  //build a block for each slideshow
  foreach ($slideshows as $slideshow) {
    $info[$slideshow->name] = array(
      'info' => t('Slideshow : @name', array(
        '@name' => $slideshow->title,
      )),
    );
  }
  return $info;
}