You are here

function _service_links_get_node_title in Service links 6.2

Same name and namespace in other branches
  1. 7.2 service_links.module \_service_links_get_node_title()

Return the properly title.

1 call to _service_links_get_node_title()
_service_links_get_tags in ./service_links.module
Fill an array with tags and the content to substitute.

File

./service_links.module, line 794
Adds social network links to the content.

Code

function _service_links_get_node_title($node, $settings) {
  $title = isset($node->title) ? $node->title : '';
  switch ($settings['title_override']) {
    case SERVICE_LINKS_TAG_TITLE_NODE:
      break;
    case SERVICE_LINKS_TAG_TITLE_OVERRIDE:
      $title = str_replace('<title>', $title, $settings['title_text']);
      break;
    case SERVICE_LINKS_TAG_TITLE_TOKEN:
      $title = token_replace($settings['title_text'], 'node', $node);
      break;
  }
  return $title;
}