You are here

function uc_attribute_option_load in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 uc_attribute/uc_attribute.module \uc_attribute_option_load()
  2. 5 uc_attribute/uc_attribute.module \uc_attribute_option_load()
  3. 6.2 uc_attribute/uc_attribute.module \uc_attribute_option_load()

Loads an attribute option from the database.

Parameters

int $oid: Option ID to load.

Return value

object The attribute option object.

3 calls to uc_attribute_option_load()
UbercartAttributeTestCase::testAttributeUIAttributeOptionsDelete in uc_attribute/tests/uc_attribute.test
Tests the "delete attribute option" user interface.
UbercartAttributeTestCase::testAttributeUIAttributeOptionsEdit in uc_attribute/tests/uc_attribute.test
Tests the "edit attribute options" user interface.
uc_attribute_condition_ordered_product_option in uc_attribute/uc_attribute.rules.inc
Returns TRUE if a product in the given order has the selected option.

File

uc_attribute/uc_attribute.module, line 809
Ubercart Attribute module.

Code

function uc_attribute_option_load($oid) {
  return db_query("SELECT * FROM {uc_attribute_options} WHERE oid = :oid", array(
    ':oid' => $oid,
  ))
    ->fetchObject();
}