Module Block does not show up Possible Duplicate:
  Block not showing up in drupal  




For some odd reason, This very simple module block does not show up in structure 
under the list of viable blocks. Am I doing something wrong here?


[quick_links.info]

name= Quick Links
description = Simple block with links
package = Mpackage
core = 7.x
files[] = quick_links.module



[quick_links.module]

function quick_links_block_info() {
  $blocks['quick_links_staff'] = array(
    'info' => t('Quick Link'),
    'status' => 1,
  );
  return $blocks;
}//TODO add caching option

function quick_links_block_view($delta = '') {
  $block = array();
  switch ($delta) {
    case 'quick_links_staff' :
      $block['subject'] = t('Quick Link');
      $block['content'] = t('links go here');
      break;
  }
  return $block;
}
I don't have a real explanation why my solution worked; I only replaced quick_links_staff with quick_links in both places.

function quick_links_block_info() {
  $blocks['quick_links'] = array(
    'info' =&gt; t('Quick Link'),
    'status' =&gt; 1,
  );
  return $blocks;
}//TODO add caching option

function quick_links_block_view($delta = '') {
  $block = array();
  switch ($delta) {
  case 'quick_links':
    $block['subject'] = t('Quick Link');
    $block['content'] = t('links go here');
    break;
  }
  return $block;
}


Make sure to clear Drupal cache after you implement the change.