function logintoboggan_form_user_admin_permissions_alter in LoginToboggan 8
Implements hook_form_user_admin_permissions_alter().
File
- ./
logintoboggan.module, line 226 - LoginToboggan module.
Code
function logintoboggan_form_user_admin_permissions_alter(&$form, &$form_state) {
// If the trusted role isn't the auth user, then add it using js.
$trusted_role = LogintobogganUtility::trustedRole();
$auth_role = User::AUTHENTICATED_ROLE;
if ($trusted_role != $auth_role) {
$form['#attached']['drupalSettings']['LoginToboggan']['trustedID'] = $auth_role;
}
}