Elgg  Version 1.11
Go to the documentation of this file.
1 <?php
6 $content = get_input('text');
10 if ($site->setPrivateSetting('robots.txt', $content)) {
11  system_message(elgg_echo('save:success'));
12 } else {
13  register_error(elgg_echo('save:fail'));
14 }
Get an entity (default is current site)
Definition: sites.php:18
get_input($variable, $default=null, $filter_result=true)
Get some input from variables passed submitted through GET or POST.
Definition: input.php:27
Definition: set_robots.php:8
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg system_message
Wrapper function for system_messages.
Definition: elgglib.js:374
elgg register_error
Wrapper function for system_messages.
Definition: elgglib.js:383
Set robots.txt action.
Definition: set_robots.php:6