You are here

function noderelationships_get_localized_content_type_name in Node Relationships 6

Get the localized name of the given content type.

7 calls to noderelationships_get_localized_content_type_name()
noderelationships_backref_page in ./noderelationships.pages.inc
Menu callback; Display back reference views in the node relationships tab.
noderelationships_cck_backref_sync_fields in ./noderelationships.inc
Synchronize back reference settings with back reference fields.
noderelationships_content_extra_fields in ./noderelationships.module
Implementation of hook_content_extra_fields().
noderelationships_erd_diagram in ./noderelationships.admin.inc
Build the Entity Relationship Diagram (ERD).
theme_noderelationships_admin_settings_backref in ./noderelationships.admin.inc
Render the back reference settings form.

... See full list

File

./noderelationships.inc, line 1234
Common functions for the noderelationships module.

Code

function noderelationships_get_localized_content_type_name($nodetype) {
  $name = node_get_types('name', $nodetype);
  if ($i18nstrings = noderelationships_get_i18nstrings()) {
    $name = $i18nstrings("nodetype:type:{$nodetype}:name", $name);
  }
  return $name;
}