When a user edits a taxonomy term, there is a link for "Relations" at the bottom. how can I make that link not show up for certain roles? I don't believe we are using relations at all for taxonomy terms.

Comments

Snehal Brahmbhatt’s picture

@dianacastillo,

Yes, you can do it by hook_form_alter()

i.e.
/**
* Implementation of hook_form_alter()
*
* Some code taken from https://www.drupal.org/node/2158985
*/
function hide_taxonomy_fieldset_form_alter(&$form, $form_state){
if($form['#form_id'] ==='taxonomy_form_term')
$form['relations']['#access'] = FALSE;
}

Thanks!

dianacastillo’s picture

thanks!

dianacastillo’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.