You are here

function Notifications_Field_Select::get_name in Notifications 7

Translate name into options

Overrides Notifications_Field::get_name

File

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

Class

Notifications_Field_Select
Field with selectable values

Code

function get_name() {
  if (($value = $this
    ->get_value()) && ($options = $this
    ->select_options()) && isset($options[$value])) {
    return $options[$value];
  }
}