You are here

function _taxonomy_access_del_term in Taxonomy Access Control 6

Flag indicating whether we are processing a term deletion via admin form.

Parameters

$tid: The tid being deleted.

Return value

The cached tid, or false if none is cached.

2 calls to _taxonomy_access_del_term()
taxonomy_access_taxonomy in ./taxonomy_access.module
Implements hook_taxonomy().
taxonomy_access_term_submit in ./taxonomy_access.module
Submit handler for term deletions. Overrides term deletion handling to determine what node access to update.

File

./taxonomy_access.module, line 732
Allows administrators to specify how each category (in the taxonomy) can be used by various roles.

Code

function _taxonomy_access_del_term($tid = NULL) {
  static $deleted_tid = FALSE;

  // If the tid was passed, cache.
  if (isset($tid)) {
    $deleted_tid = $tid;
  }
  else {
    return $deleted_tid;
  }
}