From 4cc24f88fc354c52af29d8f7f44cfa625e9da96f Mon Sep 17 00:00:00 2001 From: thewilkybarkid <chriswilkinson84@gmail.com> Date: Fri, 6 Sep 2013 11:06:54 +0100 Subject: [PATCH] Use constants/booleans --- cambridge_lite.install | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/cambridge_lite.install b/cambridge_lite.install index f60aa03..513af50 100644 --- a/cambridge_lite.install +++ b/cambridge_lite.install @@ -468,7 +468,7 @@ function cambridge_lite_install() { 'module' => 'system', 'delta' => 'help', 'theme' => $theme, - 'status' => 1, + 'status' => TRUE, 'weight' => 0, 'region' => 'content', 'pages' => '', @@ -479,7 +479,7 @@ function cambridge_lite_install() { 'module' => 'user', 'delta' => 'login', 'theme' => $theme, - 'status' => 1, + 'status' => TRUE, 'weight' => 10, 'region' => 'sidebar', 'pages' => '', @@ -490,7 +490,7 @@ function cambridge_lite_install() { 'module' => 'block', 'delta' => 1, 'theme' => $theme, - 'status' => 1, + 'status' => TRUE, 'weight' => 0, 'region' => 'page_title', 'pages' => '<front>', @@ -501,7 +501,7 @@ function cambridge_lite_install() { 'module' => 'menu_block', 'delta' => 1, 'theme' => $theme, - 'status' => 1, + 'status' => TRUE, 'weight' => 0, 'region' => 'horizontal_navigation', 'pages' => '', @@ -512,7 +512,7 @@ function cambridge_lite_install() { 'module' => 'menu_block', 'delta' => 2, 'theme' => $theme, - 'status' => 1, + 'status' => TRUE, 'weight' => 0, 'region' => 'left_navigation', 'pages' => "<front>\nuser\nuser/*", @@ -672,11 +672,11 @@ function cambridge_lite_install() { 'module' => 'views', 'delta' => 'carousel-block', 'theme' => 'cambridge_theme', - 'status' => 1, + 'status' => TRUE, 'weight' => 0, 'region' => 'carousel', - 'custom' => 0, - 'visibility' => 1, + 'custom' => BLOCK_CUSTOM_FIXED, + 'visibility' => BLOCK_VISIBILITY_LISTED, 'pages' => '<front>', 'title' => '<none>', 'cache' => DRUPAL_NO_CACHE, @@ -758,11 +758,11 @@ function cambridge_lite_install() { 'module' => 'views', 'delta' => 'related_links-block', 'theme' => 'cambridge_theme', - 'status' => 1, + 'status' => TRUE, 'weight' => 1, 'region' => 'sidebar', - 'custom' => 0, - 'visibility' => 0, + 'custom' => BLOCK_CUSTOM_FIXED, + 'visibility' => BLOCK_VISIBILITY_NOTLISTED, 'pages' => '', 'title' => '', 'cache' => DRUPAL_NO_CACHE, -- GitLab