You are here

function organigrams_block_info in Organigrams 7

Implements hook_block_info().

File

./organigrams.module, line 512
Defines the organigrams functions and entity types.

Code

function organigrams_block_info() {

  // Initialize blocks array.
  $blocks = array();

  // Iterate through all the available organigrams.
  foreach (organigrams_get_names() as $organigram) {

    // Add organigram block.
    $blocks[$organigram->oid] = array(
      'info' => t('Organigram: !organigram', array(
        '!organigram' => $organigram->name,
      )),
    );
  }

  // Return available blocks.
  return $blocks;
}