Is it possible to set: "show block on specific pages" into "is only the listed pages", programmatically? Is it possible to set: "show block on specific pages" into "is only the listed pages"?

I suppose that I should add a new item in this block info, but I don't know which one and can't find it in the api hook_block_info();
This block should be only visible in the page overview_courses/course but is visible in every page except overview_course/course

function menuNode_block_info() {
  $blocks['Course'] = array(
    'info' =&gt; t('Dit toont alle blocken weer'),
    'region' =&gt; 'sidebar_first',
    'weight' =&gt; 1,
    'status' =&gt; 1,
    'pages' =&gt; "overview_courses/course",
    'cache' =&gt; 'DRUPAL_NO_CACHE',
  );
  return $blocks;
}


Can someone help me? all help is welcome.

Kind regards
You need to set,  visibility => 'BLOCK_VISIBILITY_LISTED'

function menuNode_block_info() {
  $blocks['Course'] = array(
    'info' =&gt; t('Dit toont alle blocken weer'),
    'region' =&gt; 'sidebar_first',
    'weight' =&gt; 1,
    'status' =&gt; 1,
    'visibility' =&gt; 'BLOCK_VISIBILITY_LISTED',
    'pages' =&gt; "overview_courses/course",
    'cache' =&gt; 'DRUPAL_NO_CACHE',
  );
  return $blocks;
}