Display block only on a specific page
The code would go in hook_block_info(). You can use the pages property to define the list of pages the block should be shown on. e.g.

$blocks['recent'] = array(
  'info' =&gt; t('Recent content'),
  'pages' =&gt; 'dashboard',
  'visibility' =&gt; BLOCK_VISIBILITY_LISTED
);