public static function Notifications_Field::load_multiple in Notifications 7
Load multiple fields
1 call to Notifications_Field::load_multiple()
- Notifications_Subscription::load_fields in ./
notifications.subscription.inc - Load condition fields from db
File
- ./
notifications.field.inc, line 297 - Drupal Notifications Framework - Default class file
Class
- Notifications_Field
- Base class for Notifications fields
Code
public static function load_multiple($conditions) {
$fields = array();
$query = db_select('notifications_subscription_fields', 'f')
->fields('f');
foreach ($conditions as $key => $value) {
$query
->condition($key, $value);
}
foreach ($query
->execute()
->fetchAll() as $field) {
$fields[] = self::build_object($field);
}
return $fields;
}