You are here

function termstatus_term_getstatus in Taxonomy Term Status 7

Return the term status of a given term, defaulting to the vocabulary.

3 calls to termstatus_term_getstatus()
termstatus_form_taxonomy_form_term_alter in ./termstatus.module
Implements hook_form_FORM_ID_alter().
termstatus_taxonomy_term_load in ./termstatus.module
Implements hook_taxonomy_term_load().
termstatus_term_save in ./termstatus.module
Save the status record of a term.

File

./termstatus.module, line 310
Hook implementations and API for the taxonomy term status module.

Code

function termstatus_term_getstatus($term) {
  return isset($term->status) ? $term->status : variable_get('termstatus_default_' . $term->vocabulary_machine_name, TRUE);
}