Score:0

Get all updated (changed) fields in submit function

in flag

In hook_form_alter in the specific form, I've added the new submit button

  if ($form_id == 'myform') {
    $form['custom_submit'] = [
      '#type' => 'submit',
      '#value' => t('custom submit'),
      '#weight' => 100,
      '#submit' => ['custom_submit_func'],
    ];
  }

In custom_submit_func I need to get all field values that changed (not equal to an entity old field values or form field default value).

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.