20 if (!empty(
$vars[
'confirm']) && !isset(
$vars[
'is_action'])) {
 
   21     $vars[
'is_action'] = 
true;
 
   24 if (!empty(
$vars[
'confirm'])) {
 
   28     if (
$vars[
'data-confirm'] === 
true) {
 
   36     unset(
$vars[
'value']);
 
   39 if (isset(
$vars[
'text'])) {
 
   41         $text = htmlspecialchars(
$vars[
'text'], ENT_QUOTES, 
'UTF-8', 
false);
 
   47     $text = htmlspecialchars(
$url, ENT_QUOTES, 
'UTF-8', 
false);
 
   50 unset(
$vars[
'encode_text']);
 
   60         if (!isset(
$vars[
'rel'])) {
 
   61             $vars[
'rel'] = 
'nofollow';
 
   69 if (!isset(
$vars[
'title']) && isset(
$vars[
'data-confirm'])) {
 
   73 unset(
$vars[
'is_action']);
 
   74 unset(
$vars[
'is_trusted']);
 
   75 unset(
$vars[
'confirm']);
 
   78 echo 
"<a $attributes>$text</a>";
 
if(!empty($vars['confirm']) &&!isset($vars['is_action'])) if(!empty($vars['confirm'])) $url
 
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
 
elgg_add_action_tokens_to_url($url, $html_encode=false)
Adds action tokens to URL.
 
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
 
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed attributes.