You are here

function properties_sql_properties_template_delete in Dynamic properties 7

Delete a Template.

Parameters

$template: Template object.

File

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

Code

function properties_sql_properties_template_delete($template) {
  db_delete('properties_template')
    ->condition('name', $template->name)
    ->execute();
  db_delete('properties_template_category')
    ->condition('template_name', $template->name)
    ->execute();
}