Elgg  Version 1.9
Namespaces | Functions
group.php File Reference

Go to the source code of this file.

Namespaces

 Elgg\Core
 Activate a plugin or plugins.
 

Functions

 get_group_entity_as_row ($guid)
 Get the group entity. More...
 
 add_group_tool_option ($name, $label, $default_on=true)
 Adds a group tool option. More...
 
 remove_group_tool_option ($name)
 Removes a group tool option based on name. More...
 
 _elgg_groups_container_override ($hook, $type, $result, $params)
 Allow group members to write to the group container. More...
 
 _elgg_groups_test ($hook, $type, $value)
 Runs unit tests for the group entities. More...
 
 _elgg_groups_init ()
 init the groups library private More...
 

Function Documentation

_elgg_groups_container_override (   $hook,
  $type,
  $result,
  $params 
)

Allow group members to write to the group container.

Parameters
string$hookHook name
string$typeHook type
bool$resultThe value of the hook
array$paramsParameters related to the hook
Returns
bool private

Definition at line 89 of file group.php.

_elgg_groups_init ( )

init the groups library private

Definition at line 122 of file group.php.

_elgg_groups_test (   $hook,
  $type,
  $value 
)

Runs unit tests for the group entities.

Parameters
string$hookHook name
string$typeHook type
array$valueArray of unit test locations
Returns
array private

Definition at line 112 of file group.php.

add_group_tool_option (   $name,
  $label,
  $default_on = true 
)

Adds a group tool option.

See also
remove_group_tool_option().
Parameters
string$nameName of the group tool option
string$labelUsed for the group edit form
bool$default_onTrue if this option should be active by default
Returns
void
Since
1.5.0

Definition at line 39 of file group.php.

get_group_entity_as_row (   $guid)

Get the group entity.

Parameters
int$guidGUID for a group
Returns
array|false private

Definition at line 19 of file group.php.

remove_group_tool_option (   $name)

Removes a group tool option based on name.

See also
add_group_tool_option()
Parameters
string$nameName of the group tool option
Returns
void
Since
1.7.5

Definition at line 65 of file group.php.