You are here

function Notifications_Subscription::add_field_args in Notifications 6.4

Same name and namespace in other branches
  1. 7 notifications.subscription.inc \Notifications_Subscription::add_field_args()

Add field arguments from url

Parameters

$fields: String of field names separated by commas

$values: String of field values separated by commas

File

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

Class

Notifications_Subscription
Message destination class

Code

function add_field_args($fields, $values) {
  $names = explode(',', $fields);
  $params = explode(',', $values);
  foreach ($names as $index => $type) {
    $this
      ->add_field($type, isset($params[$index]) ? $params[$index] : NULL);
  }
}