I have installed and am using the Events module, however I would like to remove the tags from the front page that show how many days remain untill an event and the event type. How can this be done?

Chris Hogg

- www.karate-tring.co.uk

Comments

luno’s picture

look at event.theme
search for lines that contain $node->typename to remove the node type.
search for the function theme_event_upcoming_item and comment out the line that contains $node->timeleft, e.g:

function theme_event_upcoming_item($node) {
  $output = l($node->title, "node/$node->nid", array('title' => $node->title));
//  if ((event_get_types('all') + event_get_types('solo')) > 1) {
//    $output .= '<span class="event-nodetype">'. t("($node->typename)") .'</span>';
//  }
//  $output .= '<span class="event-timeleft">('. $node->timeleft .')</span>';
  return $output;
}
cjz0r’s picture

excellent, thanks for the reply! I figured out the first part from another thread, then i decided to just 'hack' the rest for the time being (display: none; in the css :o))

Thanks again

ChrisKennedy’s picture

See http://drupal.org/node/75216#comment-184904 for removing the (event) link.