You are here

function notifications_format_title_description in Notifications 6.4

Same name and namespace in other branches
  1. 7 notifications.module \notifications_format_title_description()

Array item callback to format title and description

3 string references to 'notifications_format_title_description'
notifications_admin_subscriptions_settings in ./notifications.admin.inc
Subscription settings
notifications_ui_settings_form in notifications_ui/notifications_ui.admin.inc
Site-wide settings form.
_notifications_content_type_options in notifications_content/notifications_content.module
List (enabled) subscription options for content types

File

./notifications.module, line 1140
Notifications module

Code

function notifications_format_title_description($item) {
  if (!empty($item['description'])) {
    $description = check_plain($item['description']);
  }
  elseif (!empty($item['name'])) {
    $description = check_plain($item['name']);
  }
  return '<strong>' . check_plain($item['title']) . '</strong>' . (!empty($description) ? ' ' . $description : '');
}