You are here

function heartbeat_messages_title in Heartbeat 6.4

Function to load title for pages.

1 string reference to 'heartbeat_messages_title'
heartbeat_menu in ./heartbeat.module
Implementation of hook_menu().

File

./heartbeat.module, line 758

Code

function heartbeat_messages_title($access_type = NULL) {
  $types = variable_get('heartbeat_access_types', array());
  foreach ($types as $type) {
    if (drupal_strtolower($type['class']) == drupal_strtolower($access_type)) {
      return t($type['name']);
    }
  }
  return t($access_type);
}