title: Drupal Block not showing on the page
body: <pre><code>$blocks['onemore'] = array(
  'info' =&gt; t('onemore'),
  'status' =&gt; TRUE,
  'region' =&gt; 'content',
  'weight' =&gt; 0,
  'cache' =&gt; DRUPAL_NO_CACHE,
  'visibility' =&gt; BLOCK_VISIBILITY_LISTED,
  'pages' =&gt; 'admin/structure/nodequeue/1/view/1',   
   );
  </code></pre>
  
  <p>Problem - The above block shows up and works perfectly and as expected at 'admin/structure/nodequeue/1/view/1'</p>
  
  <p>My problem is that I need to declare dynamic amounts of blocks based on the users inputs. So I wrote a db fetch  and for each loop.
  If I do this then the block shows up in 'admin/modules' but the it is not in 'content' region for the seven theme. As I want to show it there.</p>
  
  <p>I have double checked the values and even the admin/structure/block/manage/xdmp/onemore/configure has the value but the region is not selected.</p>
  
  <p>I am assuming there is some conflict in the for each loop or the db query. Please advice your thoughts on it. </p>
  
  <pre><code>function xdmp_block_info() {
  $blocks = array();
  // Here we are going to do a db query so that I can get a list of 
  // block ids to declare
  $resultxdmp = db_query("
  SELECT * FROM xdmp_container_list ");
  
  
  foreach($resultxdmp as $resultRecords)
  {    
  $xdmp_nodeque_id_to_display =(int)$resultRecords-&gt;xdmp_nodequeue_id;
  $xdmp_nodeque_id_to_display = intval($xdmp_nodeque_id_to_display);
  
  $xdmp_path_to_show_block = 'admin/structure/nodequeue/'.$xdmp_nodeque_id_to_display.'
  /view/'.$xdmp_nodeque_id_to_display.'';
  
  
  $xdmp_machinenameofblock=(string)$resultRecords-&gt;xdmp_container_machine_name;
  $xdmp_nameofblock=(string)$resultRecords-&gt;xdmp_container_name;
  
  
  
  $blocks[$xdmp_machinenameofblock] = array(
  'info' =&gt; t($xdmp_nameofblock),
  'status' =&gt; TRUE,
  'region' =&gt; 'content',
  'weight' =&gt; 0,
  'cache' =&gt; DRUPAL_NO_CACHE,
  'visibility' =&gt; BLOCK_VISIBILITY_LISTED,
  'pages' =&gt; $xdmp_path_to_show_block,   
  );
  
    } // end for for each 
  
  return $blocks;
  }
  </code></pre>
  
  <p>cheers,
  Vishal</p>