Elgg  Version 1.11
Namespaces | Variables
default_widgets.php File Reference

Go to the source code of this file.

Namespaces

 Elgg\Core
 Activate a plugin or plugins.
 

Variables

 $object
 
 $widget_context = get_input('widget_context')
 
 $list = elgg_trigger_plugin_hook('get_list', 'default_widgets', null, array())
 
if(!$widget_context &&$list) $current_info = null
 
 $tabs = array()
 
foreach($list as $info) $tabs_vars
 
if(!$current_info) else
 
 $default_widgets_input
 
 $params
 
 $content = elgg_view_layout('widgets', $params)
 

Variable Documentation

Definition at line 78 of file default_widgets.php.

if (!$widget_context &&$list) $current_info = null

Definition at line 36 of file default_widgets.php.

$default_widgets_input
Initial value:
= elgg_view('input/hidden', array(
'name' => 'default_widgets',
'value' => 1
))
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354

Definition at line 68 of file default_widgets.php.

$list = elgg_trigger_plugin_hook('get_list', 'default_widgets', null, array())

Definition at line 29 of file default_widgets.php.

$object
Initial value:
'type' => 'object',
'subtype' => 'moddefaultwidgets',
'distinct' => false,
'limit' => 1,
))
elgg_get_entities(array $options=array())
Returns an array of entities with optional filtering.
Definition: entities.php:490

Definition at line 9 of file default_widgets.php.

$params
Initial value:
= array(
'content' => $default_widgets_input,
'num_columns' => $current_info['widget_columns'],
)
if(!$widget_context &&$list) $current_info
$default_widgets_input

Definition at line 73 of file default_widgets.php.

$tabs = array()

Definition at line 37 of file default_widgets.php.

foreach ($list as $info) $tabs_vars
Initial value:
= array(
'tabs' => $tabs
)

Definition at line 53 of file default_widgets.php.

$widget_context = get_input('widget_context')

Definition at line 28 of file default_widgets.php.

if (!$current_info) else
Initial value:
{
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_set_page_owner_guid($guid)
Set the guid of the entity that owns this page.
Definition: pageowner.php:73

Definition at line 63 of file default_widgets.php.