Hi,

I am quite new to coding/Drupal but could I ask the following;

1. Does this module check for bad Links / Titles, etc When user submits the Input Form, or are checks made every time the content page loads (hence the more queries?)

2. I am looking into making a Drupal wiki and it seems that the bad links function could be used to check for empty wiki pages (broken internal links) and then instead of removing the links, the module could offer to link to a Content Creation Page with that Title Prepopulated. Not sure if that is how your module works.

CThx.

Comments

LoMo’s picture

Hi Matt,

1) It's a "text filter". It alters the display of content each time a page loads (unless the content is cached, which is recommended for input filters that perform queries). Other text filters change BBCode to HTML, or two line-breaks to a new HTML paragraph, or remove HTML elements that the creator didn't have the privileges to use, etc. This isn't so much different... it modifies the HTML based on what's in the database, though, so it results in an increase in queries if the content isn't cached.

2) Input filters like this don't check to see if the user has the access rights to create content (especially true for this filter which is intended for cached content). The filter you mention (which I think I'll rename the "unlink" filter) just temporarily removes links to unpublished content or to pages which don't exist yet (or anymore) so that visitors don't get "page not found" errors from following links to other content on your site. If the content is published or created, then the next time the caches are built, the links will appear (this could also happen right away, if the content isn't cached, but running a filter like this on uncached content could result in a noticeable performance impact).

What I am considering adding is a log for admins to see on which nodes/what links have been unlinked, so yes, perhaps that could provide provide direct links to create the content, too. Anyway, to better understand how this type of module operates, you might want to read up on text/input filters a bit more: http://drupal.org/node/213156

Best,

Lowell

LoMo’s picture

Closing this issue since no further responses and presumably I've answered the original poster's questions. (?)

Please re-open, xenyo, if you are still confused.

BTW, I've added some documentation, here: http://drupal.cocomore.com/blog/drupal-7-text-format-filters-internal-li...

LoMo’s picture

Status: Active » Closed (fixed)