Enable a button block programmatically? How do I enable a button block programmatically?

I've tried:

function openid_connect_block_info() {
  $blocks['openid_connect_login'] = array(
      'info' =&gt; t('Login Using PixelPin'),
      'cache' =&gt; DRUPAL_CACHE_PER_ROLE | DRUPAL_CACHE_PER_PAGE,
      'visibility' =&gt; 1,
      'region' =&gt; 'content',
      'pages' =&gt; 'user',
  );
  return $blocks;
}
Setting a block region doesn't work unless you set status to 1, and clearing your cache of course.