Elgg  Version 3.0
set_robots.php
Go to the documentation of this file.
1 <?php
7 
9  '#type' => 'plaintext',
10  '#label' => elgg_echo('admin:robots.txt:instructions'),
11  'name' => 'text',
12  'value' => $site->getPrivateSetting('robots.txt'),
13 ]);
14 
16  '#type' => 'plaintext',
17  '#label' => elgg_echo('admin:robots.txt:plugins'),
18  'value' => elgg_trigger_plugin_hook('robots.txt', 'site', ['site' => $site], ''),
19  'readonly' => true,
20 ]);
21 
23  '#type' => 'submit',
24  'value' => elgg_echo('save'),
25 ]);
26 
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1395
$footer
Definition: set_robots.php:22
$site
Definition: set_robots.php:8
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_set_form_footer($footer= '')
Sets form footer and defers its rendering until the form view and extensions have been rendered...
Definition: views.php:1331
elgg echo
Translates a string.
Definition: languages.js:43
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
Definition: elgglib.php:720
elgg_get_site_entity()
Get the current site entity.
Definition: entities.php:130