function _service_links_get_page_url in Service links 6.2
Same name and namespace in other branches
- 7.2 service_links.module \_service_links_get_page_url()
Return the url for not-node pages.
1 call to _service_links_get_page_url()
- _service_links_get_tags in ./
service_links.module - Fill an array with tags and the content to substitute.
File
- ./
service_links.module, line 780 - Adds social network links to the content.
Code
function _service_links_get_page_url($node, $settings) {
if ($settings['link_to_front'] || drupal_is_front_page()) {
$url = url('<front>', array(
'absolute' => TRUE,
'query' => $settings['text_to_append'],
));
}
else {
$url = url($_GET['q'], array(
'absolute' => TRUE,
'query' => $settings['text_to_append'],
));
}
return $url;
}