24 return get_data_row(
"SELECT * from {$CONFIG->dbprefix}groups_entity where guid=$guid");
42 if (!isset($CONFIG->group_tool_options)) {
43 $CONFIG->group_tool_options = array();
46 $group_tool_option = new \stdClass;
48 $group_tool_option->name =
$name;
49 $group_tool_option->label =
$label;
50 $group_tool_option->default_on = $default_on;
52 $CONFIG->group_tool_options[] = $group_tool_option;
68 if (!isset($CONFIG->group_tool_options)) {
72 foreach ($CONFIG->group_tool_options as $i => $option) {
73 if ($option->name ==
$name) {
74 unset($CONFIG->group_tool_options[$i]);
114 $value[] = $CONFIG->path .
'engine/tests/ElggGroupTest.php';
128 $events->registerHandler(
'init',
'system',
'_elgg_groups_init');
_elgg_groups_container_override($hook, $type, $result, $params)
Allow group members to write to the group container.
get_group_entity_as_row($guid)
Get the group entity.
if($guid==elgg_get_logged_in_user_guid()) $name
$guid
Removes an admin notice.
remove_group_tool_option($name)
Removes a group tool option based on name.
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
elgg_instanceof($entity, $type=null, $subtype=null, $class=null)
Checks if $entity is an and optionally for type and subtype.
get_data_row($query, $callback=null, array $params=[])
Retrieve a single row from the database.
_elgg_groups_test($hook, $type, $value)
Runs unit tests for the group entities.
elgg global
Pointer to the global context.
$label
Elgg profile plugin edit default profile action.
_elgg_groups_init()
init the groups library private
add_group_tool_option($name, $label, $default_on=true)
Adds a group tool option.