You are here

function skinr_rule_delete in Skinr 6.2

Delete a skinr page rule object.

1 call to skinr_rule_delete()
skinr_rule_delete_confirm_submit in ./skinr_ui.rules.inc

File

./skinr.module, line 340

Code

function skinr_rule_delete($rid) {
  if ($rule = skinr_rule_load($rid)) {
    db_query("DELETE FROM {skinr_rules} WHERE rid = %d", $rule->rid);
    db_query("DELETE FROM {skinr} WHERE module = '%s' AND sid = '%s'", 'page', $rule->rid);
  }
}