You are here

function vppr_form_taxonomy_form_term_alter in Vocabulary Permissions Per Role 7

Implements hook_form_FORM_ID_alter().

File

./vppr.module, line 82
Vocabulary Permissions Per Role

Code

function vppr_form_taxonomy_form_term_alter(&$form, &$form_state) {
  if (isset($form['tid']['#value']) && isset($form['actions']['delete']['#access']) && isset($form['#term'])) {
    $form['actions']['delete']['#access'] = vppr_access_term_delete((object) $form['#term']);
  }
}