function taxonomy_delete_link_term_delete_access in Taxonomy Delete Link 7
Returns whether the current user has access to delete the given term.
2 calls to taxonomy_delete_link_term_delete_access()
- TaxonomyDeleteLinkViewsHandlerDeleteTermLink::render in modules/
taxonomy_delete_link_views/ includes/ taxonomy_delete_link_views_handler_delete_term_link.inc - Renders the field handler.
- theme_taxonomy_delete_link_taxonomy_overview_terms in ./
taxonomy_delete_link.module - Returns HTML for a terms overview form as a sortable list of terms.
1 string reference to 'taxonomy_delete_link_term_delete_access'
- taxonomy_delete_link_menu in ./
taxonomy_delete_link.module - Implements hook_menu().
File
- ./
taxonomy_delete_link.module, line 39 - Provides the taxonomy term delete link.
Code
function taxonomy_delete_link_term_delete_access($term) {
if (module_exists('taxonomy_term_access')) {
return taxonomy_term_access('delete', $term);
}
return user_access("delete terms in {$term->vid}") || user_access('administer taxonomy');
}