You are here

function gallery_assist_block_helper in Gallery Assist 6

2 calls to gallery_assist_block_helper()
gallery_assist_block in ./gallery_assist.module
Implementation of hook_block().
_gallery_assist_block_display in ./gallery_assist.module
Display the GA-Block Galleries (0).

File

./gallery_assist.module, line 5105
Drupal content type with gallery functionality.

Code

function gallery_assist_block_helper($delta) {
  global $language;
  $data = variable_get('gallery_assist_block_data', FALSE);
  $block_names = array(
    0 => !empty($data[$delta][$language->language]['myCustom']) ? $data[$delta][$language->language]['myCustom'] : t('Galleries'),
    1 => !empty($data[$delta][$language->language]['myCustom']) ? $data[$delta][$language->language]['myCustom'] : t('My Galleries'),
    2 => !empty($data[$delta][$language->language]['myCustom']) ? $data[$delta][$language->language]['myCustom'] : t('Gallery Block'),
  );
  return $block_names[$delta];
}