25 $text = htmlspecialchars(
$text, ENT_QUOTES,
'UTF-8',
false);
28 if (!isset(
$vars[
'title']) && isset(
$vars[
'confirm'])) {
32 if (isset(
$vars[
'class'])) {
33 if (!is_array(
$vars[
'class'])) {
36 $vars[
'class'][] =
'elgg-requires-confirmation';
38 $vars[
'class'] =
'elgg-requires-confirmation';
41 unset(
$vars[
'encode_text']);
43 unset(
$vars[
'confirm']);
44 unset(
$vars[
'is_trusted']);
47 echo "<a $attributes>$text</a>";
elgg_add_action_tokens_to_url($url, $html_encode=false)
Adds action tokens to 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_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg echo
Translates a string.
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed attributes.