You are here

function Notifications_Field::format in Notifications 7

Format title and value

File

./notifications.field.inc, line 172
Drupal Notifications Framework - Default class file

Class

Notifications_Field
Base class for Notifications fields

Code

function format($format = NOTIFICATIONS_FORMAT_HTML) {
  $items = array(
    $this
      ->get_title(),
    $this
      ->format_value($format),
  );
  return notifications_format_items($items, $format);
}