confirmlink.php 646 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Elgg confirmation link
  4. * A link that displays a confirmation dialog before it executes
  5. *
  6. * @package Elgg
  7. * @subpackage Core
  8. *
  9. * @uses $vars['text'] The text of the link
  10. * @uses $vars['href'] The address
  11. * @uses $vars['title'] The title text (defaults to confirm text)
  12. * @uses $vars['confirm'] The dialog text
  13. * @uses $vars['encode_text'] Run $vars['text'] through htmlspecialchars() (false)
  14. */
  15. elgg_deprecated_notice('The view output/confirmlink has been deprecated, please use output/url', '1.10');
  16. if (!isset($vars['confirm'])) {
  17. $vars['confirm'] = true;
  18. }
  19. echo elgg_view('output/url', $vars);