You are here

function spaces_delete in Spaces 7.3

Same name and namespace in other branches
  1. 5.2 spaces.module \spaces_delete()
  2. 6.3 spaces.module \spaces_delete()
  3. 6 spaces.module \spaces_delete()
  4. 6.2 spaces.module \spaces_delete()
  5. 7 spaces.module \spaces_delete()

Remove all override values for a space.

4 calls to spaces_delete()
SpacesContextControllerTestCase::test in tests/spaces.test
Test override inheritance of variable controller.
SpacesVariableControllerTestCase::test in tests/spaces.test
Test override inheritance of variable controller.
spaces_og_node_delete in spaces_og/spaces_og.module
Implements hook_node_delete().
spaces_taxonomy_taxonomy_term_delete in spaces_taxonomy/spaces_taxonomy.module
Implements hook_taxonomy_term_delete().

File

./spaces.module, line 31

Code

function spaces_delete($type, $id) {
  return db_delete('spaces_overrides')
    ->condition('type', $type)
    ->condition('id', $id)
    ->execute();
}