You are here

function forum_access_taxonomy in Forum Access 6

Implementation of hook_taxonomy().

Delete {forum_access} records when forums are deleted.

File

./forum_access.module, line 658
forum_access.module

Code

function forum_access_taxonomy($op, $type, $array = NULL) {

  //dpm($array, "hook_taxonomy($op, $type)");
  if ($type = 'term' && $op == 'delete' && $array['vid'] == _forum_access_get_vid()) {
    db_query("DELETE FROM {forum_access} WHERE tid = %d", $array['tid']);
    variable_del('forum_access_rids');

    // clear cache
  }
}