You are here

function rules_link_trigger_form in Rules Link 7

Same name and namespace in other branches
  1. 7.2 rules_link.module \rules_link_trigger_form()

Form generator for the menu callback for the confirm form links.

1 string reference to 'rules_link_trigger_form'
rules_link_menu in ./rules_link.module
Implements hook_menu().

File

./rules_link.module, line 345
Rules Link - module file.

Code

function rules_link_trigger_form($form, &$form_state, $rules_link, $entity_id) {
  $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')));
}