21 'mobile' =>
'tel p-tel',
22 'phone' =>
'tel p-tel',
23 'website' =>
'url u-url',
24 'contactemail' =>
'email u-email',
30 $shortname =
$field[
'name'];
31 $valtype =
$field[
'#type'];
39 if ($valtype ===
'url' && is_string(
$value) && !preg_match(
'~^https?\://~i',
$value)) {
40 $value =
"http://{$value}";
elgg()
Bootstrapping and helper procedural code available for use in Elgg core and plugins.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
elgg_view_no_results(string $text='')
Helper function to display a no results view.
elgg_view(string $view, array $vars=[], string $viewtype='')
Return a parsed view.
elgg_format_element(string $tag_name, array $attributes=[], string $text='', array $options=[])
Format an HTML element.
if(empty($fields)) $microformats
$entity
Show user profile information in admin listings.
if(! $entity instanceof \ElggUser) $fields