Results
12.06.2020
comment_perm 8.x-1.x-dev ::
src/CommentForm.php
if (!$this->currentUser->isAuthenticated() && $anonymous_contact != CommentInterface::ANONYMOUS_MAYNOT_CONTACT) {
$form['#attached']['library'][] = 'core/drupal.form';
$form['#attributes']['data-user-info-from-browser'] = TRUE;
}
// If not replying to a comment, use our dedicated page callback for new
// Comments on entities.
if (!$comment->id() && !$comment->hasParentComment()) {
$form['#action'] = Url::fromRoute('comment.reply', ['entity_type' => $entity->getEntityTypeId(), 'entity' => $entity->id(), 'field_name' => $field_name])->toString(); 08.06.2020
disable_autopopulate_rform 2.0.0 ::
disable_autopopulate_rform.module
*/
function disable_autopopulate_rform_form_user_register_form_alter(&$form, FormStateInterface $form_state) {
$form['#attributes']['data-user-info-from-browser'] = FALSE;
} 02.10.2019
register_display 8.x-1.x-dev ::
register_display.module
$form['roleId'] = ['#type' => 'value', '#value' => $roleId];
$form['#validate'][] = '\Drupal\register_display\RegisterDisplayServices::addRoleToUser';
$form['#attributes']['data-user-info-from-browser'] = FALSE;
}
}
/**
* Implements hook_ENTITY_TYPE_delete().
*/ 31.03.2019
ump 8.x-1.0-alpha1 ::
ump.module
if (count($allow_roles) > 0) {
// Avoid loading cached data from browser local storage.
$form['#attributes']['data-user-info-from-browser'] = FALSE;
// Disaply only the roles that are allowed for current user.
$allow_roles[] = 'authenticated';
$form['account']['roles']["#access"] = TRUE;
foreach ($form['account']['roles']['#options'] as $option_key => $option_value) {
if (!in_array($option_key, $allow_roles)) { 07.10.2020
contacts 8.x-1.x-dev ::
contacts.module
// email etc). We explicitly don't want this for the user form and its
// derivatives.
unset($form['#attributes']['data-user-info-from-browser']);
// If the password policy module is installed, invoke its form alter but
// not for our AddContactsForm. See contacts_module_implements_alter.
if (function_exists('password_policy_form_user_form_alter')) {
if ($display->id() !== 'user.user.add_contact_organisation' && $display->id() !== 'user.user.add_contact_individual') {
password_policy_form_user_form_alter($form, $form_state); 14.10.2020
entity_reference_tree 8.x-1.x-dev ::
src/Form/SearchForm.php
$form_state->setCached(FALSE);
$form['#cache'] = ['max-age' => 0];
$form['#attributes']['data-user-info-from-browser'] = FALSE;
// Field element id.
$form['field_id'] = [
'#name' => 'field_id',
'#type' => 'hidden',
'#weight' => 80,
'#value' => $field_edit_id, 31.08.2020
give 8.x-1.0-beta13 ::
src/Form/Donation/DonationForm.php
if ($this->currentUser->isAnonymous()) {
$form['#attached']['library'][] = 'core/drupal.form';
$form['#attributes']['data-user-info-from-browser'] = TRUE;
}
// Do not allow authenticated users to alter the name or email values to
// prevent the impersonation of other users.
else {
$form['name']['#type'] = 'markup';
$form['name']['#markup'] = '<p><strong>'.$this->t('Name').'</strong>: '.$this->currentUser->getDisplayName().'</p>'; 01.09.2020
group_member_mgmt 8.x-1.0-beta7 ::
group_member_mgmt.module
];
$form['account']['notify']['#access'] = TRUE;
$form['#attributes']['data-user-info-from-browser'] = FALSE;
$form['administer_users']['#value'] = TRUE;
if (\Drupal::moduleHandler()->moduleExists('autologout')) {
if (($key = array_search('autologout_user_profile_submit', $form['actions']['submit']['#submit'])) !== FALSE) {
unset($form['actions']['submit']['#submit'][$key]);
}
} 02.08.2022
knowledge 8.x-1.x-dev ::
src/KnowledgeForm.php
if (!$this->currentUser->isAuthenticated() && $anonymous_contact != KnowledgeInterface::ANONYMOUS_MAYNOT_CONTACT) {
$form['#attached']['library'][] = 'core/drupal.form';
$form['#attributes']['data-user-info-from-browser'] = TRUE;
}
$knowledge_preview = $form_state->get('knowledge_preview');
if (isset($knowledge_preview)) {
$form += $knowledge_preview;
} 22.06.2020
logintoboggan 8.x-1.x-dev ::
src/Form/LogintobogganRegister.php
// browser.
if (!$admin) {
$form['#attributes']['data-user-info-from-browser'] = TRUE;
}
// Because the user status has security implications, users are blocked by
// default when created programmatically and need to be actively activated
// if needed. When administrators create users from the user interface,
// however, we assume that they should be created as activated by default. 04.08.2022
vartheme_bs5 2.0.x-dev ::
src/components/pages/pageUserRegister/pageUserRegister.config.yml
</section>
<h2 class="block-title"><span> or </span></h2>
<form class="user-register-form user-form antibot form" data-user-info-from-browser="" data-drupal-selector="user-register-form" autocomplete="off" data-action="/user/register" action="/user/register" method="post" id="user-register-form" accept-charset="UTF-8" data-once="form-updated user-info-from-browser" data-drupal-form-fields="edit-mail,edit-submit,edit-url">
<noscript>
<div class="antibot-no-js antibot-message antibot-message-warning">You must have JavaScript enabled to use this form.</div>
</noscript>
<div data-drupal-selector="edit-account" id="edit-account" class="js-form-wrapper form-wrapper">
<div class="js-form-item form-item js-form-type-email form-item-mail js-form-item-mail form-group">
<label class="form-label js-form-required form-required" for="edit-mail">Email</label> 