You are here

function forward_url_fix in Service links 6.2

Same name and namespace in other branches
  1. 7.2 services/forward_services.module \forward_url_fix()
1 string reference to 'forward_url_fix'
forward_services_service_links in services/forward_services.module
Implementation of hook_service_links().

File

services/forward_services.module, line 26
Extends Service Links with Forward module support.

Code

function forward_url_fix(&$service, &$settings, $node = NULL) {
  if (isset($node->nid)) {
    $service['link'] = str_replace('<encoded-query>', 'node/<node-id>', $service['link']);
  }
}