You are here

function notifications_content_type_name in Notifications 6.4

Get list of translated content type names

3 calls to notifications_content_type_name()
notifications_content_notifications_object_node in notifications_content/notifications_content.module
Implementation of hook_notifications_object_node()
notifications_content_types in notifications_content/notifications_content.module
Get content types available for subscriptions to content type
notifications_content_types_callback in notifications_content/notifications_content.module
Wrapper for options callback based on subscription type.

File

notifications_content/notifications_content.module, line 855
Subscriptions to content events

Code

function notifications_content_type_name($type = NULL) {
  static $types;
  if (!isset($types)) {
    foreach (node_get_types('names') as $key => $name) {
      $types[$key] = notifications_translate("type:{$key}:name", $name, NULL, 'nodetype');
    }
  }
  return $type ? $types[$type] : $types;
}