Elgg  Version 2.3
Variables
module.php File Reference

Go to the source code of this file.

Variables

 $type = elgg_extract('type', $vars, false)
 Elgg module element. More...
 
 $title = elgg_extract('title', $vars, '')
 
 $body = elgg_extract('body', $vars, '')
 
 $footer = elgg_extract('footer', $vars, '')
 
 $show_inner = elgg_extract('show_inner', $vars, false)
 
 $attrs
 
if($type$header = elgg_extract('header', $vars)
 
if($footer$contents = $header . $body . $footer
 
 if ($show_inner)
 

Variable Documentation

$attrs
Initial value:
= [
'id' => elgg_extract('id', $vars)
$vars['entity']
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1375

Definition at line 21 of file module.php.

if ($title) if ($header!==null) $body = elgg_extract('body', $vars, '')

Definition at line 17 of file module.php.

if ($footer) $contents = $header . $body . $footer
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 43 of file module.php.

$footer = elgg_extract('footer', $vars, '')

Definition at line 18 of file module.php.

if ($type) $header = elgg_extract('header', $vars)

Definition at line 30 of file module.php.

$show_inner = elgg_extract('show_inner', $vars, false)

Definition at line 19 of file module.php.

$title = elgg_extract('title', $vars, '')

Definition at line 16 of file module.php.

$type = elgg_extract('type', $vars, false)

Elgg module element.

$vars['type'] The type of module (main, info, popup, aside, etc.) $vars['title'] Optional title text (do not pass header with this option) $vars['header'] Optional HTML content of the header $vars['body'] HTML content of the body $vars['footer'] Optional HTML content of the footer $vars['class'] Optional additional class for module $vars['id'] Optional id for module $vars['show_inner'] Optional flag to leave out inner div (default: false)

Definition at line 15 of file module.php.

if($show_inner)

Definition at line 44 of file module.php.