Show watcher list as an individual page

This commit is contained in:
Manuel Cillero 2017-07-26 14:00:48 +02:00
parent ec3462121f
commit 6c622aad79

View file

@ -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');