function uc_field_attribute_options_load in Ubercart Field attributes 7
1 call to uc_field_attribute_options_load()
- _uc_field_attribute_nodeapi in ./
uc_field_attribute.inc - @file uc_field_attribute.inc Node functions for uc_field_attribute
File
- ./
uc_field_attribute.inc, line 129 - uc_field_attribute.inc Node functions for uc_field_attribute
Code
function uc_field_attribute_options_load($aid) {
$options = array();
$result = db_query("SELECT * FROM {uc_field_attribute_options}\n WHERE aid = :aid", array(
':aid' => $aid,
));
foreach ($result as $option) {
$options[$option->oid] = $option;
}
return $options;
}