You are here

function properties_sql_properties_attribute_delete in Dynamic properties 7

Delete an attribute.

Parameters

$attribute: Attribute object.

File

properties_sql/properties_sql.module, line 29
This module implements the attribute and category API with a SQL backend.

Code

function properties_sql_properties_attribute_delete($attribute) {
  $num_deleted = db_delete('properties_attribute')
    ->condition('name', $attribute->name)
    ->execute();
}