public static function Notifications_Subscription::filter_fields in Notifications 6.4
Same name and namespace in other branches
- 7 notifications.subscription.inc \Notifications_Subscription::filter_fields()
Filter out fields that have no value set ($isset = FALSE to get the ones that are set)
2 calls to Notifications_Subscription::filter_fields()
- Notifications_Subscription::get_editable_fields in includes/
notifications_subscription.class.inc - Get editable fields. They're the ones in the subscription type that have no value
- Notifications_Subscription::get_instance_fields in includes/
notifications_subscription.class.inc - Get instance fields that have a value set
File
- includes/
notifications_subscription.class.inc, line 729 - Drupal Notifications Framework - Default class file
Class
- Notifications_Subscription
- Message destination class
Code
public static function filter_fields($fields, $isset = TRUE) {
foreach ($fields as $key => $field) {
if ($isset && !isset($field->value) || !$isset && isset($field->value)) {
unset($fields[$key]);
}
}
return $fields;
}