75 elgg_deprecated_notice(
'context parameters for elgg_register_widget_type() should be passed as an array())', 1.9);
134 if (
$params[
'action'] ==
'widgets/save') {
138 $results[
'title'] =
$widget->title;
200 if (!is_array($info)) {
205 if (!$event || !$entity_type) {
208 if (!isset($events[$event][$entity_type])) {
210 $events[$event][$entity_type] =
true;
232 if (!$default_widget_info || !
$entity) {
241 foreach ($default_widget_info as $info) {
242 if ($info[
'entity_type'] ==
$type) {
253 'subtype' =>
'widget',
255 'private_setting_name' =>
'context',
256 'private_setting_value' => $info[
'widget_context'],
266 $new_widget->container_guid =
$entity->guid;
267 $new_widget->owner_guid =
$entity->guid;
273 $new_widget->$name =
$value;
297 if (
$type ==
'object' &&
$params[
'subtype'] ==
'widget') {
305 $events->registerHandler(
'init',
'system',
'_elgg_widgets_init');
306 $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.
if($screenshots) $description
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
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.
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.
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.
get_entity($guid)
Loads and returns an entity object from a guid.