function uc_attribute_option_load in Ubercart 6.2
Same name and namespace in other branches
- 8.4 uc_attribute/uc_attribute.module \uc_attribute_option_load()
- 5 uc_attribute/uc_attribute.module \uc_attribute_option_load()
- 7.3 uc_attribute/uc_attribute.module \uc_attribute_option_load()
Loads an attribute option from the database.
Parameters
$oid: Option ID to load.
Return value
The attribute option object.
3 calls to uc_attribute_option_load()
- UbercartAttributeTestCase::testAttributeUIAttributeOptionsDelete in uc_attribute/
uc_attribute.test - Tests the "delete attribute option" user interface.
- UbercartAttributeTestCase::testAttributeUIAttributeOptionsEdit in uc_attribute/
uc_attribute.test - Tests the "edit attribute options" user interface.
- uc_attribute_condition_ordered_product_option in uc_attribute/
uc_attribute.ca.inc - Return TRUE if a product in the given order has the selected option.
File
- uc_attribute/
uc_attribute.module, line 847
Code
function uc_attribute_option_load($oid) {
return db_fetch_object(db_query("SELECT * FROM {uc_attribute_options} WHERE oid = %d", $oid));
}