13 'class' => (
$strength !=
'strong') ?
'elgg-message elgg-state-error' :
'elgg-message elgg-state-success',
17 '#type' =>
'checkbox',
18 'label' =>
elgg_echo(
'admin:site:secret:regenerate'),
20 'name' =>
'regenerate_site_secret',
21 '#help' =>
elgg_echo(
'admin:site:secret:regenerate:help'),
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
$strength
Advanced site settings, site section.
elgg echo
Translates a string.
elgg_view_module($type, $title, $body, array $vars=array())
Wrapper function for the module display pattern.
_elgg_get_site_secret_strength()
Get the strength of the site secret.