23 if (
$entity->hasIcon(
'master')) {
register_error($error)
Display an error on next page load.
forward($location="", $reason='system')
Forward to $location.
elgg_instanceof($entity, $type=null, $subtype=null, $class=null)
Checks if $entity is an \ElggEntity and optionally for type and subtype.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
elgg_view_page($title, $body, $page_shell='default', $vars=array())
Assembles and outputs a full page.
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype='')
Return a parsed view.
elgg_gatekeeper()
Used at the top of a page to mark it as logged in users only.
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
elgg_push_context($context)
Push a context onto the top of the stack.
if($entity->hasIcon('master')) $params
if(!elgg_instanceof($entity, 'user')||! $entity->canEdit()) $content