Are we able to do any custom coding, tokens, etc. to the confirmation screen? I need to give the user confirmation data--such as you are about to delete [title name of node] , or you're about to favorite [user id].

Comments

sepgil’s picture

No, currently thats not possible, sorry

tribsel’s picture

is it possible to display confirmation as a java-script popup as opposed to redirect to new page to confirm the action?

mitchell’s picture

I think Rules Forms Support could be used for this. It wouldn't be as pretty as a module-specific admin configuration screen designed for adding this info, but it should work well enough and be easy enough to pick up.

Edit: strike-through

mitchell’s picture

Category: support » feature

@sepgil: Would including 'confirm_question' in the 'rules_link' entity help here?

#2: Please file a separate feature request for this.

nitrocad’s picture

Issue summary: View changes

If somebody need to add node title, the following modification can be useful.
rules_link.module (line:345)

function rules_link_trigger_form($form, &$form_state, $rules_link, $entity_id) {
+  $node_title = node_load($entity_id)->title;
  $form['link'] = array(
    '#type' => 'hidden',
    '#value' => $rules_link->name,
  );
  $form['entity_id'] = array(
    '#type' => 'hidden',
    '#value' => $entity_id,
  );
-  //return confirm_form($form,filter_xss_admin($rules_link->getSettingTranslation('confirm_question')), '', filter_xss_admin($rules_link->getSettingTranslation('confirm_description')));
+  return confirm_form($form,t(filter_xss_admin($rules_link->getSettingTranslation('confirm_question')), array('%title' => $node_title)), '', filter_xss_admin($rules_link->getSettingTranslation('confirm_description')));
}

You can now use %title in the confirmation question.
I know that writing into the module is not the best solution, but the last dev release is 4 years old...