You are here

function Notifications_Subscription::load_fields in Notifications 6.4

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

Load condition fields from db

1 call to Notifications_Subscription::load_fields()
Notifications_Subscription::get_fields in includes/notifications_subscription.class.inc
Get fields as array of field objects

File

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

Class

Notifications_Subscription
Message destination class

Code

function load_fields() {
  $this->fields = array();
  if (!empty($this->sid)) {
    $result = db_query("SELECT * FROM {notifications_fields} WHERE sid = %d", $this->sid);
    while ($field = db_fetch_object($result)) {
      $this
        ->set_field($field);
    }
  }
}