function uc_dropdown_attributes_get_type in Dropdown Attributes 6
Same name and namespace in other branches
- 8 uc_dropdown_attributes.module \uc_dropdown_attributes_get_type()
- 7 uc_dropdown_attributes.module \uc_dropdown_attributes_get_type()
Retrieve product class from the node ID.
5 calls to uc_dropdown_attributes_get_type()
- DropdownAttributeTestCase::testClassAttributeDependency in tests/
uc_dropdown_attributes.test - Tests for dropdown attributes in product classes.
- uc_dropdown_attributes_activate in ./
uc_dropdown_attributes.module - Retrieves the attribute dependencies.
- uc_dropdown_attributes_dependency in ./
uc_dropdown_attributes.module - Retrieves the attribute dependencies.
- uc_dropdown_attributes_dependency_type in ./
uc_dropdown_attributes.module - Retrieve whether dependencies are defined by node or class.
- uc_dropdown_attributes_product_alter in ./
uc_dropdown_attributes.module - Alter products in preparation for drop down attributes.
File
- ./
uc_dropdown_attributes.module, line 399 - Show/hide attributes based on the values of other attributes.
Code
function uc_dropdown_attributes_get_type($nid) {
$sql = 'SELECT type FROM {node} WHERE nid=%d';
$type = db_result(db_query($sql, $nid));
return $type;
}