Closed (outdated)
Project:
Event
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2008 at 16:57 UTC
Updated:
13 Apr 2018 at 21:01 UTC
Jump to comment: Most recent
Comments
Comment #1
mdlepage commentedHi there, still looking for help on this please. Any suggestions at to how to remove the Calendar link in an event node?
Thanks,
M
Comment #2
frank ralf commentedThat's the generated HTML for the link:
So you just create a CSS style with:
Voilá!
As a general rule, most modules add their own CSS classes or ids in the generated HTML. So for presentation purposes you usually can rely on just modifying some CSS style sheet instead of tinkering with module code itself.
Frank
Comment #3
jbomb commentedyou can also use hook_link_alter()
Comment #4
martysteer commentedI believe the arguments are reversed for D6.x. It should be:
function your_module_link_alter(&$links, &$node)...
See: http://api.drupal.org/api/function/hook_link_alter
The link ID I have to unset is also different: $links['calendar_link']
Comment #5
jbomb commented@martysteer that's correct. The arguments are reversed in drupal 6. The provided snippet should be relevant for drupal 5.
Comment #6
martysteer commentedOh yeah. Thanks for clarifying.
Comment #7
onelittleant commentedIn Drupal 6, this implementation of hook_link_alter will remove the "Calendar" link from all event-enabled content types:
Comment #8
japerryEvent for Drupal 8 is unrelated to older versions. If an issue similar to this one exists, please open a new issue with the 8.x branch.