79 elgg_deprecated_notice(
'context parameters for elgg_register_widget_type() should be passed as an array())', 1.9);
90 'multiple' => $multiple,
164 if (
$params[
'action'] ==
'widgets/save') {
168 $results[
'title'] =
$widget->title;
229 if (!is_array($info)) {
234 if (!$event || !$entity_type) {
237 if (!isset($events[$event][$entity_type])) {
239 $events[$event][$entity_type] =
true;
261 if (!$default_widget_info || !
$entity) {
270 foreach ($default_widget_info as
$info) {
271 if ($info[
'entity_type'] ==
$type) {
282 'subtype' =>
'widget',
284 'private_setting_name' =>
'context',
285 'private_setting_value' => $info[
'widget_context'],
295 $new_widget->container_guid =
$entity->guid;
296 $new_widget->owner_guid =
$entity->guid;
302 $new_widget->$name =
$value;
326 if (
$type ==
'object' &&
$params[
'subtype'] ==
'widget') {
334 $events->registerHandler(
'init',
'system',
'_elgg_widgets_init');
335 $events->registerHandler(
'ready',
'system',
'_elgg_default_widgets_init');
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_get_site_entity($site_guid=0)
Get an entity (default is current site)
if($guid==elgg_get_logged_in_user_guid()) $name
elgg_get_entities_from_private_settings(array $options=array())
Returns entities based upon private settings.
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
elgg_register_admin_menu_item($section, $menu_id, $parent_id=null, $priority=100)
Add an admin area section or child section.
if($categories) $description
elgg_set_ignore_access($ignore=true)
Set if Elgg's access system should be ignored.
elgg_pop_context()
Removes and returns the top context string from the stack.
elgg_in_context($context)
Check if this context exists anywhere in the stack.
const ELGG_ENTITIES_ANY_VALUE
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
elgg global
Pointer to the global context.
if(!$owner) if($owner->guid!=$page_owner->guid) $context
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
elgg_push_context($context)
Push a context onto the top of the stack.
elgg_register_action($action, $filename="", $access= 'logged_in')
Registers an action.
$user_guid
Avatar remove action.
get_all_private_settings($entity_guid)
Return an array of all private settings.
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
get_entity($guid)
Loads and returns an entity object from a guid.