X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Fblock_info_alter.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Fblock_info_alter.twig;h=fb1d3552aea455e9f8561ab0b67a605057684e8a;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/block_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/block_info_alter.twig new file mode 100644 index 000000000..fb1d3552a --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/block_info_alter.twig @@ -0,0 +1,7 @@ +/** + * Implements hook_block_info_alter(). + */ +function {{ machine_name }}_block_info_alter(&$blocks, $theme, $code_blocks) { + // Disable the login block. + $blocks['user']['login']['status'] = 0; +}