Drupal 7 form autosubmit bug in IE and Safari

I have a form which works on chrome, mozilla but in IE the autosubmit is not working. function recherche_localite($form, &$form_state) { $form = array(); $form[‘localite’] = array( ‘#method”‘=>’post’, ‘#type’ => ‘textfield’, ‘#maxlength’ => 60, ‘#autocomplete_path’ => ‘justtosay_formTools/autocomplete’, ‘#attributes’ => array( ‘placeholder’ => t(‘Dept, Ville ou[…]

Message : how to set the "send to"

Hi, I use drupal 8 and I try to create notifications after node insert and comment insert. I create a module which set the fields in the message content : function notifications_comment_insert($comment) {    $node = Node::load($comment->entity_id->getString());   $message = Message::create([‘template’ => ‘example_create_comment’, ‘uid’ =>[…]

Custom submit handler on user_profile_form

HI, In a module I use an hook to alter the user_profile_form. function justtosay_formTools_form_alter(&$form, &$form_state, $form_id) {        dpm($form_id );       if($form_id == ‘user_profile_form’) {      //redirigé l’utilisateur après submit     $form[‘actions’][‘submit’][‘#submit’][] = ‘overrided_submit_user_handler’; } here is the custom submit[…]

Get entity value

Here is my entity object. ​​​​​​​Payment {#1020 ▼ #values: array:17 [▼ “amount” => array:1 [▼ “x-default” => array:1 [▼ 0 => array:2 [▼ “number” => “2.43” “currency_code” => “EUR” ] ] ] I need to get the “number” value, but I can’t get it easily.[…]