You are here

function Notifications_Subscription::map_field in Notifications 7

Map field to its right position in this subscription

1 call to Notifications_Subscription::map_field()
Notifications_Subscription::set_field in ./notifications.subscription.inc
Set a field, we may need to find out the position

File

./notifications.subscription.inc, line 211
Drupal Notifications Framework - Default class file

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

function map_field($field) {

  // First we try with instance fields
  foreach ($this
    ->get_instance_fields() as $instance) {
    if ($instance->type == $field->type) {
      return $instance->position;
    }
  }
}