From 3d8b5a61fb5cf5d7eb7e76fa85a9f459b9142e57 Mon Sep 17 00:00:00 2001
From: Brett Bieber <bieber@unl.edu>
Date: Tue, 28 Sep 2010 14:59:06 +0000
Subject: [PATCH] Add some comments from Tim's walkthrough of the profile,
 hopefully all this is correct.

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@189 20a16fea-79d4-4915-8869-1ea9d5ebf173
---
 profiles/unl_profile/unl_profile.install | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

diff --git a/profiles/unl_profile/unl_profile.install b/profiles/unl_profile/unl_profile.install
index 864e5df5..1ea5139e 100644
--- a/profiles/unl_profile/unl_profile.install
+++ b/profiles/unl_profile/unl_profile.install
@@ -47,22 +47,27 @@ function unl_profile_install()
     }
     $query->execute();
     
-    
+    // Enable the UNL theme
     theme_enable(array('unl_wdn'));
+    // Set the UNL theme as the defaul
     variable_set('theme_default', 'unl_wdn');
+    // Keep the standard admin theme
     variable_set('node_admin_theme', 1);
     
+    // Establish temp directory
     if (isset($ini_settings['temp_dir'])) {
     	variable_set('file_temporary_path', $ini_settings['temp_dir']);
     }
     
+    // Set the error level
     if (isset($ini_settings['error_level'])) {
     	variable_set('error_level', $ini_settings['error_level']);
     }
     
-    unl_profile_add_shortcut('Related Links', 'admin/structure/block/manage/block/1/configure');
-    unl_profile_add_shortcut('Footer', 'admin/structure/block/manage/block/11/configure');
-    unl_profile_add_shortcut('Contact Us', 'admin/structure/block/manage/block/21/configure');
+    // Add shortcuts
+    unl_profile_add_shortcut('Related Links',    'admin/structure/block/manage/block/1/configure');
+    unl_profile_add_shortcut('Footer',           'admin/structure/block/manage/block/11/configure');
+    unl_profile_add_shortcut('Contact Us',       'admin/structure/block/manage/block/21/configure');
     unl_profile_add_shortcut('Navigation Links', 'admin/structure/menu/manage/main-menu');
     
     module_disable(array('overlay'));
@@ -86,17 +91,21 @@ function unl_profile_install()
     krsort($roles);
     variable_set('imce_roles_profiles', $roles);
     // End IMCE setup.
-    
-    
+
+
     // Update the settings file to use shared database tables (unless this is the default site)
-    if (conf_path() != 'sites/default') { 
+    if (conf_path() != 'sites/default') {
         $shared_prefix = unl_profile_get_default_site_db_prefix();
         $settings['databases'] = array(
             'value'    => $GLOBALS['databases'],
             'required' => TRUE
         );
         $settings['databases']['value']['default']['default']['prefix'] = array(
+
+            // Localized tables, prefixed with site name
             'default'       => $GLOBALS['databases']['default']['default']['prefix'],
+
+            // shared tables across all sites
             'authmap'       => $shared_prefix,
             'filter'        => $shared_prefix,
             'filter_format' => $shared_prefix,
-- 
GitLab