Commit 7389848d authored by webchick's avatar webchick
Browse files

#637930 by yoroy and jhodgdon: Remove the word 'post' from Tracker module.

parent 2b34b769
; $Id$
name = Tracker
description = Enables tracking of recent posts for users.
description = Enables tracking of recent content for users.
dependencies[] = comment
package = Core
version = VERSION
......
......@@ -3,7 +3,7 @@
/**
* @file
* Enables tracking of recent posts for users.
* Enables tracking of recent content for users.
*/
/**
......@@ -13,7 +13,7 @@ function tracker_help($path, $arg) {
switch ($path) {
case 'admin/help#tracker':
$output = '<p>' . t('The tracker module displays the most recently added or updated content on your site, and provides user-level tracking to follow the contributions of particular authors.') . '</p>';
$output .= '<p>' . t("The <em>Recent posts</em> page is available via a link in the navigation menu block and displays new and recently-updated content (including the content type, the title, the author's name, number of comments, and time of last update) in reverse chronological order. Posts are marked updated when changes occur in the text, or when new comments are added. To use the tracker module to follow a specific user's contributions, select the <em>Track</em> tab from the user's profile page.") . '</p>';
$output .= '<p>' . t("The <em>Recent content</em> page is available via a link in the navigation menu block and displays new and recently-updated content (including the content type, the title, the author's name, number of comments, and time of last update) in reverse chronological order. Content is marked updated when changes occur in the text, or when new comments are added. To use the tracker module to follow a specific user's contributions, select the <em>Track</em> tab from the user's profile page.") . '</p>';
$output .= '<p>' . t('For more information, see the online handbook entry for <a href="@tracker">Tracker module</a>.', array('@tracker' => 'http://drupal.org/handbook/modules/tracker/')) . '</p>';
return $output;
}
......@@ -24,18 +24,18 @@ function tracker_help($path, $arg) {
*/
function tracker_menu() {
$items['tracker'] = array(
'title' => 'Recent posts',
'title' => 'Recent content',
'page callback' => 'tracker_page',
'access arguments' => array('access content'),
'weight' => 1,
'file' => 'tracker.pages.inc',
);
$items['tracker/all'] = array(
'title' => 'All recent posts',
'title' => 'All recent content',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['tracker/%user_uid_optional'] = array(
'title' => 'My recent posts',
'title' => 'My recent content',
'page callback' => 'tracker_page',
'access callback' => '_tracker_myrecent_access',
'access arguments' => array(1),
......@@ -53,8 +53,8 @@ function tracker_menu() {
'type' => MENU_LOCAL_TASK,
'file' => 'tracker.pages.inc',
);
$items['user/%user/track/posts'] = array(
'title' => 'Track posts',
$items['user/%user/track/content'] = array(
'title' => 'Track content',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
......@@ -144,7 +144,7 @@ function tracker_cron() {
* Access callback for tracker/%user_uid_optional.
*/
function _tracker_myrecent_access($account) {
// This path is only allowed for authenticated users looking at their own posts.
// This path is only allowed for authenticated users looking at their own content.
return $account->uid && ($GLOBALS['user']->uid == $account->uid) && user_access('access content');
}
......
......@@ -69,12 +69,12 @@ function tracker_page($account = NULL, $set_title = FALSE) {
}
}
else {
$rows[] = array(array('data' => t('No posts available.'), 'colspan' => '5'));
$rows[] = array(array('data' => t('No content available.'), 'colspan' => '5'));
}
$page['tracker'] = array(
'#rows' => $rows,
'#header' => array(t('Type'), t('Post'), t('Author'), t('Replies'), t('Last updated')),
'#header' => array(t('Type'), t('Title'), t('Author'), t('Replies'), t('Last updated')),
'#theme' => 'table',
'#attached' => array(
'css' => array(drupal_get_path('module', 'tracker') . '/tracker.css' => array('preprocess' => FALSE)),
......
......@@ -43,7 +43,7 @@ class TrackerTest extends DrupalWebTestCase {
$this->drupalGet('tracker');
$this->assertNoText($unpublished->title[FIELD_LANGUAGE_NONE][0]['value'], t('Unpublished node do not show up in the tracker listing.'));
$this->assertText($published->title[FIELD_LANGUAGE_NONE][0]['value'], t('Published node show up in the tracker listing.'));
$this->assertLink(t('My recent posts'), 0, t('User tab shows up on the global tracker page.'));
$this->assertLink(t('My recent content'), 0, t('User tab shows up on the global tracker page.'));
}
/**
......@@ -233,6 +233,6 @@ class TrackerTest extends DrupalWebTestCase {
$this->drupalPost('admin/content', $edit, t('Update'));
$this->drupalGet('tracker');
$this->assertText(t('No posts available.'), t('Node is displayed on the tracker listing pages.'));
$this->assertText(t('No content available.'), t('Node is displayed on the tracker listing pages.'));
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment