The event module displays the flexinode event type name atop the event teaser in all calendar views. This is actually a link to filtering the calendar by that event type. In my opinion, this is redundant (except for accesibility purpose, may be) when there is a drop-down for this function atop the calendar already.

Can someone suggest where to disable this?

I looked at the event.css file, but couldn't find anything to comment out or set display to none.

Comments

John Hwang’s picture

In the event.module, you'll find the following line on line 330

drupal_set_title(t('Events') . ($title ? ' - '. $title : ''));

Replace that line with

drupal_set_title(t('Events'));
venkat-rk’s picture

Thanks. It was on line 353 in my version. However, it doesn't work. You can still see it here

John Hwang’s picture

Ahh...

I miss understood what you were referring too...

That line was for the the title portion of the calendar page. When you click on the filter "public event" it shows "Event - Filter: Public Evenet" at the top of the page, right above the drop down menu...

But, you might want to restore the line.

Okay so you want to removing the "(public event)" link... right?

there is a event.theme file in the event module directory

about line 203 there is a line:

if (!$module) {
    $output .= '<div class="type">'. l('('. $node->event_node_title .')', 'event/'.gmdate('Y/m/d', $node->start).'/table/'.$node->type, array('title' => t('limit view to events of this type'))).'</div>'."\n";
  }

Comment out the $output .= blahblahblah like so~

if (!$module) {
    // $output .= '<div class="type">'. l('('. $node->event_node_title .')', 'event/'.gmdate('Y/m/d', $node->start).'/table/'.$node->type, array('title' => t('limit view to events of this type'))).'</div>'."\n";
  }

That should do it. Hope I got it right this time~ lol~