From 6c622aad794b344e0d814b44bef30f283fd9da9b Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Wed, 26 Jul 2017 14:00:48 +0200 Subject: [PATCH] Show watcher list as an individual page --- sites/all/modules/watcher/watcher.module | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sites/all/modules/watcher/watcher.module b/sites/all/modules/watcher/watcher.module index f5a402b..77c7518 100644 --- a/sites/all/modules/watcher/watcher.module +++ b/sites/all/modules/watcher/watcher.module @@ -44,7 +44,8 @@ function theme_watcher_binder($intro_text = null, $posts_table_header, $posts_ta } // Table - $output .= theme('table', $posts_table_header, $posts_table_body); +# $output .= theme('table', $posts_table_header, $posts_table_body); + $output .= theme('table', $posts_table_header, $posts_table_body, array('id' => 'twatcher')); // Pager $output .= theme('pager', NULL, 25, 0); @@ -281,7 +282,8 @@ function watcher_menu() { 'page arguments' => array(1), 'access callback' => '_watcher_menu_access_binder', 'access arguments' => array(1), - 'type' => MENU_LOCAL_TASK, +# 'type' => MENU_LOCAL_TASK, + 'type' => MENU_NORMAL_ITEM, ) + $base_include; $items['user/%user/watcher/binder'] = array( @@ -1429,7 +1431,7 @@ function _watcher_binder($account) { $templates = _watcher_admin_settings_field_value_templates(); //////////////// Generate page content ///////////// - $intro_text = filter_xss_admin(variable_get('watcher_display_intro_text', $templates['watcher_display_intro_text'])); + $intro_text = filter_xss_admin(t(variable_get('watcher_display_intro_text', $templates['watcher_display_intro_text']))); $output = theme('watcher_binder', $intro_text, $header, $rows); return $output; @@ -2195,7 +2197,7 @@ function _watcher_node_watch_link(&$node, $a3, $a4) { // Make localized strings $tstrings = array(); $tstrings['watch_toggle_enabled'] = t('You are watching this post, click to stop watching'); - $tstrings['watch_toggle_enabled_title'] = t('This post is being watched. You can track and change email notification setting for this post in your watched posts list (see your user profile)'); + $tstrings['watch_toggle_enabled_title'] = t('This post is being watched. You can track and change email notification setting for this post in your watched posts list (see options)'); $tstrings['watch_toggle_disabled'] = t('You are not watching this post, click to start watching'); $tstrings['watch_toggle_disabled_title'] = t('Watch posts to be notified when other users comment on them or the posts are changed');