You are here

public static function Notifications_Subscription::build_field in Notifications 6.4

Build field from type, value

2 calls to Notifications_Subscription::build_field()
Notifications_Subscription::add_field in includes/notifications_subscription.class.inc
Add a new field with name, value
Notifications_Subscription::normalize_fields in includes/notifications_subscription.class.inc
Convert fields to a standard format: arrray of object fields

File

includes/notifications_subscription.class.inc, line 635
Drupal Notifications Framework - Default class file

Class

Notifications_Subscription
Message destination class

Code

public static function build_field($type, $value) {
  return (object) array(
    'field' => $type,
    'value' => $value,
  );
}