function _delete_all_get_terms_by_vid in Delete all 5
Function to get an array of terms by vocabulary
TODO: Is this an API function I couldn't find?
1 call to _delete_all_get_terms_by_vid()
- delete_all_bulk_delete_content_submit in ./
delete_all.module - Implementation of hook_submit for bulk_delete_content form
File
- ./
delete_all.module, line 139
Code
function _delete_all_get_terms_by_vid($vid) {
$terms = array();
$result = db_query('SELECT t.tid from {term_data} t WHERE t.vid = %d', $vid);
while ($term = db_fetch_object($result)) {
$terms[] = $term->tid;
}
return $terms;
}