You are here

function Notifications_Field::get_name in Notifications 7

Get field value name

3 calls to Notifications_Field::get_name()
Notifications_Field::format_value in ./notifications.field.inc
Format value
Notifications_Field::get_link in ./notifications.field.inc
Get link if this field is linked to an object
Notifications_Field_Autocomplete::autocomplete_value in ./notifications.field.inc
Format value for autocomplete
1 method overrides Notifications_Field::get_name()
Notifications_Field_Select::get_name in ./notifications.field.inc
Translate name into options

File

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

Class

Notifications_Field
Base class for Notifications fields

Code

function get_name() {
  if (isset($this->name)) {
    return $this->name;
  }
  elseif ($this
    ->get_value()) {
    return $this->name = $this
      ->get_object()
      ->get_name();
  }
  else {
    return t('none');
  }
}