function properties_sql_properties_attribute_save in Dynamic properties 7
Save an attribute object.
Parameters
$attribute: Attribute object.
File
- properties_sql/
properties_sql.module, line 14 - This module implements the attribute and category API with a SQL backend.
Code
function properties_sql_properties_attribute_save($attribute) {
db_merge('properties_attribute')
->key(array(
'name' => $attribute->name,
))
->fields(array(
'label' => $attribute->label,
))
->execute();
}