Here's a patch that I've found helps the usability for some of my modules. Adds a warning message on admin/settings/robotstxt if there are warnings from robotstxt that would be shown in the status reports. Users don't necessarily always check the status reports for new modules, but we increase the chance for them to see a problem if they view a module configuration page.

Comments

dave reid’s picture

StatusFileSize
new61.43 KB

Screenshot for review.

dave reid’s picture

I guess an alternative to this is to just provide a link the the admin/reports/status instead of showing the actual messages, much like the error message you see at /admin if there is something wrong.

hass’s picture

Status: Needs review » Needs work

We install the standard robots.txt file via hook_install, not on page load (tooooo slow as said in the other case). Why don't you like to re-use core functionality (status page)? I'm not a friend of re-inventing a new wheel.

hass’s picture

A if (file_exists('./robots.txt')) { drupal_set_message('foo'); } on the robots.txt config page is really enough. Do not overcomplicate this, please.

hass’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -Needs backport to D5

Automatically closed -- issue fixed for 2 weeks with no activity.