You are here

function twitter_block_block_info in Twitter Block 7

Same name and namespace in other branches
  1. 7.2 twitter_block.module \twitter_block_block_info()

Implements hook_block_info().

File

./twitter_block.module, line 108
A module to provide simple Twitter blocks using the Twitter Search API.

Code

function twitter_block_block_info() {
  $blocks = array();
  $result = db_query('SELECT bid, info FROM {twitter_block} ORDER BY info');
  foreach ($result as $block) {
    $blocks[$block->bid]['info'] = $block->info;
  }
  return $blocks;
}