32 $this->options = array_merge(
$defaults, $options);
82 return elgg_echo(
"groups:tool:{$this->name}");
91 $lan_key =
"groups:tool:{$this->name}:description";
105 $default_on =
elgg_extract(
'default_on', $this->options,
true);
107 if ($default_on ===
true || $default_on ===
'yes') {
120 return "{$this->name}_enable";
133 $value = $this->default_on;
if(!$user||!$user->canDelete()) $name
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Collection item interface.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_language_key_exists(string $key, string $language= 'en')
Check if a given language key exists.
if(!$annotation instanceof ElggAnnotation) if(!$annotation->canEdit()) if(!$annotation->delete()) $lan_key