function Notifications_Subscription::add_field_args in Notifications 7
Same name and namespace in other branches
- 6.4 includes/notifications_subscription.class.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
- ./
notifications.subscription.inc, line 1217 - Drupal Notifications Framework - Default class file
Class
- Notifications_Subscription
- Common base for subscription type and subscription instance
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);
}
}