Is it possible to add prefixes and suffixes to taxonomy terms in hierarchical taxonomy vocabulary with hook_form_alter()
. For example :
Category A - Category A1 - Category A2 Category B - Category B1
I would like to add a #prefix
and #suffix
to Category A
and Category B
.
Is it possible ?
I know how to modify a form by adding a prefix or a suffix with hook_form_alter()
$form['field_nom']['#prefix'] = '<div class="row">';