You are here

function nodesinblock_block_info in Nodes In Block 7

Implements hook_block_info().

File

./nodesinblock.module, line 234
Nodes in block makes it possible to add multiple nodes in one block.

Code

function nodesinblock_block_info() {
  $number_of_blocks = variable_get('nodesinblock_nrofblocks', 1);
  for ($i = 0, $a = 1; $i < $number_of_blocks; $i++, $a++) {
    $blocks[$i] = array(
      'info' => check_plain(variable_get('nodesinblock_friendlyname_' . $i, t('Nodes in block ' . $a))),
    );
  }
  return $blocks;
}