function robotstxt_admin_settings in RobotsTxt 5
Same name and namespace in other branches
- 6 robotstxt.admin.inc \robotstxt_admin_settings()
- 7 robotstxt.admin.inc \robotstxt_admin_settings()
You can edit the robots.txt for your site under admin/settings/robotstxt
1 string reference to 'robotstxt_admin_settings'
- robotstxt_menu in ./robotstxt.module 
- Defines the robots.txt path as a callback.
File
- ./robotstxt.module, line 49 
Code
function robotstxt_admin_settings() {
  $form['robotstxt'] = array(
    '#type' => 'textarea',
    '#title' => t('Contents of robots.txt'),
    '#default_value' => _robotstxt_get_content(),
    '#cols' => 60,
    '#rows' => 20,
    '#required' => FALSE,
    '#wysiwyg' => FALSE,
  );
  return system_settings_form($form);
}