You are here

function slick_optionset_delete in Slick Carousel 7.2

Deletes the given option set from the database.

Parameters

string|object $optionset: Optionset object, or string machine name.

1 call to slick_optionset_delete()
SlickTestCase::testOptionSetCrud in tests/slick.test
Tests Slick optionset CRUD.

File

includes/slick.admin.inc, line 244
Contains optional functions called only if needed by admin pages.

Code

function slick_optionset_delete($optionset) {
  ctools_include('export');
  $object = is_object($optionset) ? $optionset : slick_optionset_load($optionset);

  // This only deletes from the database, which means that if an item is in
  // code, then this is actually a revert.
  ctools_export_crud_delete('slick_optionset', $object);
}