You are here

function Notifications_Field_Select::valid_value in Notifications 7

Check valid value

Overrides Notifications_Field::valid_value

File

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

Class

Notifications_Field_Select
Field with selectable values

Code

function valid_value($value = NULL) {
  return ($options = $this
    ->select_options()) && isset($options[$value]);
}