function Notifications_Subscription::load_fields in Notifications 7
Same name and namespace in other branches
- 6.4 includes/notifications_subscription.class.inc \Notifications_Subscription::load_fields()
Load condition fields from db
1 call to Notifications_Subscription::load_fields()
- Notifications_Subscription::get_fields in ./
notifications.subscription.inc - Get fields as array of field objects
File
- ./
notifications.subscription.inc, line 1015 - Drupal Notifications Framework - Default class file
Class
- Notifications_Subscription
- Common base for subscription type and subscription instance
Code
function load_fields() {
// Make sure fields are set
$this
->set_fields();
if (!empty($this->sid)) {
foreach (Notifications_Field::load_multiple(array(
'sid' => $this->sid,
)) as $field) {
$this
->set_field($field);
}
}
}