I have attached a ptch that allows other modules to add service_links. This is the preferred "Drupal way" rather than the module designers suggestion to edit his module code.

an example of my own module adding a hook lokos like:

// add Service Links - using our custmm added hook
function umga_service_links_links ($links, $url, $title, $nodelink) {
    
    // Permalink
    $links['service_links_permalink'] = theme('service_links_build_link', t('Permalink'), urldecode($url), t('Permalink to this page.'), '', $nodelink);

    return $links;
}
CommentFileSizeAuthor
#3 add_hook_01.patch841 bytessanduhrs
add_hook.patch652 bytesliquidcms

Comments

liquidcms’s picture

Status: Active » Needs review
vesapalmu’s picture

Status: Needs review » Reviewed & tested by the community

Works for me. I did some testing to make sure everything still works and this will now be published to a production site.

sanduhrs’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new841 bytes

This makes a lot more sense, than hacking the module itself.
If I just apply the patch, all links disappear, until i add at least one new link via hook_service_links_links().

Added a patch to fix that.

Trasherk’s picture

add_hook_01.patch wurde hinzugefügt und nun funktioniert es thx :)

wayland76’s picture

I'd suggest that resolving this bug:

http://drupal.org/node/253758

...would also fix these problems, and in a more flexible way.

dww’s picture

Status: Needs review » Closed (duplicate)

There's an older issue about exactly the same thing here: #185642: Hook to define service links
Let's move over there.