Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you have more than one scheme, on the user access page, default values of the second or third scheme are those of the first one.
Here is a bit of code that needs review to correct it :
on original :
foreach ($vids as $vid) {
$v = taxonomy_get_vocabulary($vid);
$form['tac_lite'][$config['realm']][$vid] =
_taxonomy_term_select($v->name,
null, // name no longer used in new form api
$account->tac_lite[$vid],
on modified :
foreach ($vids as $vid) {
$v = taxonomy_get_vocabulary($vid);
$t=$config['realm'];
$a=$account->$t;
$form['tac_lite'][$config['realm']][$vid] =
_taxonomy_term_select($v->name,
null, // name no longer used in new form api
$a[$vid],
Enclosed patch also.
Comments
Comment #1
tinker CreditAttribution: tinker commented5.x version no longer supported.