You are here

function properties_sql_properties_attribute_load_multiple in Dynamic properties 7

Load multiple attributes based on their names.

Parameters

$names: Array of machine readable name of the attributes.

1 call to properties_sql_properties_attribute_load_multiple()
properties_sql_properties_attribute_load in properties_sql/properties_sql.module
Load an attribute based on the name.

File

properties_sql/properties_sql.module, line 52
This module implements the attribute and category API with a SQL backend.

Code

function properties_sql_properties_attribute_load_multiple($names = array()) {
  return db_select('properties_attribute', 'pa')
    ->fields('pa')
    ->condition('name', $names)
    ->addTag('translatable')
    ->addTag('properties_attribute_load')
    ->execute()
    ->fetchAllAssoc('name');
}