how can I do this in v5 and v6 in the announce module. any help would be appreciated.
When I click on the link and ope up the page I see:
example
just a test title here
Thu, 08/04/2011 - 12:19 — Jim Ruby
Starting August 4, 2011 - Ending August 11, 2011
this has been a test to show you what lines I would like to have removed if I can, how can I do th please?
The lines I do not want shown are:
Thu, 08/04/2011 - 12:19 — Jim Ruby
Starting August 4, 2011 - Ending August 11, 2011
Comments
Solved myself
In announcement module just comment lines 787-789
Good. bookmarking
Good. bookmarking
remove date and starting an end date
how can I do this in v5 and v6 in the announce module. any help would be appreciated.
When I click on the link and ope up the page I see:
example
just a test title here
Thu, 08/04/2011 - 12:19 — Jim Ruby
Starting August 4, 2011 - Ending August 11, 2011
this has been a test to show you what lines I would like to have removed if I can, how can I do th please?
The lines I do not want shown are:
Thu, 08/04/2011 - 12:19 — Jim Ruby
Starting August 4, 2011 - Ending August 11, 2011
How to remove start and end dates on Announcement Module
Open announcements.module and edit line 809 and 829.
Replace them with this.
function theme_announcements_dates($announcement) {
$output = ''. t('') .' ';
if (is_array($announcement->publish_date)) {
// This can happen on a preview of node/add.
$publish_date = _announcements_drupaldate2unixtime($announcement->publish_date);
$expiration_date = _announcements_drupaldate2unixtime($announcement->expiration_date);
}
else {
$publish_date = $announcement->publish_date;
$expiration_date = $announcement->expiration_date;
}
$output .= '';
// $output .= ' - '. t('') .' ';
$output .= '';
// See if it should be marked expired.
if ($announcement->expiration_date < $_SERVER['REQUEST_TIME']) {
$output .= ' '. t('Expired') .'';
}
$output .= '';
return $output;
}