Index: clickpath.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/clickpath/clickpath.module,v
retrieving revision 1.4
diff -u -r1.4 clickpath.module
--- clickpath.module	18 Dec 2008 17:42:28 -0000	1.4
+++ clickpath.module	2 Jun 2009 12:49:10 -0000
@@ -59,6 +59,13 @@
     '#description' => $description,
   );
 
+  $form['clickpath_home_title'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Title to display for frontpage'),
+    '#default_value' => variable_get('clickpath_home_title', 'Home'),
+    '#description' => t('The title entered here will be used to represent homepage. If nothing is entered, the title will default to site name.'),
+  );
+
   $form['clickpath_breadcrumb'] = array(
     '#type' => 'checkbox',
     '#title' => t('Override breacrumb trail'),
@@ -126,7 +133,7 @@
  */
 function clickpath_exit() {
   global $user;
-  if ($user->uid) {
+  if (function_exists('drupal_get_path_alias')) {
     clickpath_save_path($_GET['q']);
   }
 }
@@ -167,7 +174,16 @@
   }
   
   if ($page_match) {
-    $title = _clickpath_path_is_frontpage($path) ? t('Home') : drupal_get_title();
+    if (_clickpath_path_is_frontpage($path)) {
+      if ($home_title = variable_get('clickpath_home_title', 'Home')) {
+        $title = $home_title;    
+      } else {
+        $title = variable_get('site_name', 'Home');
+      }
+    } else {
+      $title = drupal_get_title();
+    }
+    
     $clickpath = clickpath_get_paths();
     if (empty($clickpath[$path])) {
       $clickpath[$path] = $title;

