You are here

function Notifications_Field::format_value in Notifications 7

Format value

1 call to Notifications_Field::format_value()
Notifications_Field::format in ./notifications.field.inc
Format title and value

File

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

Class

Notifications_Field
Base class for Notifications fields

Code

function format_value($format = NOTIFICATIONS_FORMAT_HTML) {
  if ($format & NOTIFICATIONS_FORMAT_HTML) {
    return $this
      ->get_path() ? $this
      ->get_link() : check_plain($this
      ->get_name());
  }
  else {
    return check_plain($this
      ->get_name());
  }
}