? .git ? click_heatmap_0.patch ? clickheat Index: click_heatmap.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/click_heatmap/click_heatmap.module,v retrieving revision 1.5.4.7 diff -u -p -r1.5.4.7 click_heatmap.module --- click_heatmap.module 16 May 2008 06:19:26 -0000 1.5.4.7 +++ click_heatmap.module 5 Apr 2009 06:46:59 -0000 @@ -56,20 +56,20 @@ function click_heatmap_help($section= "a function click_heatmap_menu() { $items = array(); $items['admin/settings/click_heatmap'] = array( - 'title' => t('Click heatmap'), + 'title' => t('Click heatmap'), 'description' => t('Configure click heatmap.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('click_heatmap_settings'), 'access arguments' => array('administer heatmaps') ); $items['admin/reports/click_heatmap'] = array( - 'title' => t('Click heatmaps'), + 'title' => t('Click heatmaps'), 'description' => t('View click heatmaps.'), 'page callback' => 'click_heatmap_log_view', 'access arguments' => array('view heatmaps') ); $items['admin/reports/click_heatmap/view'] = array( - 'title' => t('View click heatmap'), + 'title' => t('View click heatmap'), 'page callback' => 'click_heatmap_log_get_image', 'access arguments' => array('view heatmaps'), 'type' => MENU_CALLBACK @@ -81,7 +81,7 @@ function click_heatmap_menu() { * Implementation of hook_perm(). */ function click_heatmap_perm() { - return array('administer heatmaps', 'view heatmaps'); + return array('administer heatmaps', 'view heatmaps'); } /** @@ -144,7 +144,7 @@ function click_heatmap_get_url() { * @return Url without language prefix. */ function click_heatmap_remove_language_prefix($url) { - if (array_key_exists('locale', module_list())) { + if (array_key_exists('locale', module_list()) && variable_get('language_count', 1) > 1) { global $language; language_initialize(); @@ -220,7 +220,7 @@ function click_heatmap_settings_validate form_set_error('click_heatmap_library_installed', t('The module cannot be activated untill the ClickHeat library is installed.')); } else if ($form_state['values']['click_heatmap_admin_username'] != '' && $form_state['values']['click_heatmap_admin_username'] == '') { - + } else if (($form_state['values']['click_heatmap_library_installed'] == TRUE && !variable_get('click_heatmap_library_installed', FALSE))