CVS edit link for kevee

This request is to start submitting work I have developed for internal sites at Cal State Monterey Bay in the area of checking content accessibility for content authors and themers.

The proposed Accessible Content module allows administrators to define collections of accessibility tests (guidelines) and for each content type or CCK field set how those content areas should be checked.

There are several sub-modules, one for exposing accessibility checks via the Services module, another to give themers a tool to preview accessibility problems, and another to provide inline checking of accessibility problems within an editing area.

There have been two posts to the g.d.o/accessibility group (most recently one at http://groups.drupal.org/node/32864) discussing this module, and it seem that the community agrees that this is a separate project from the existing 'Accessible' module, which is much more focused on tweaking Drupal core or other popular contrib modules through theme overrides.

This module will also be a demonstration implementation of the QUAIL (Quail Accessibility Information Library) library which I also maintain over at http://code.google.com/p/quail-lib/ and is covered under GPL 3.

CommentFileSizeAuthor
#10 accessible_content-6.x.tar_.gz49.38 KBAnonymous (not verified)
#8 accessible_content-6.x.tar_.gz49.37 KBAnonymous (not verified)
#6 accessible_content-6.x.tar_.gz49.35 KBAnonymous (not verified)
#5 accessible_content-6.x.tar_.gz33.48 KBAnonymous (not verified)
#2 accessible_content-6.x.tar_.gz32.35 KBAnonymous (not verified)
#1 accessible_content.tar_.gz32.38 KBAnonymous (not verified)

Comments

Anonymous’s picture

StatusFileSize
new32.38 KB

I'm attaching the proposed module here. Please note that installation will require downloading the Quail library from http://code.google.com/p/quail-lib/ - there's also a note about it in the readme file and on installation.

Anonymous’s picture

StatusFileSize
new32.35 KB

In a momentary lapse of sanity, posted a version with a wayward dvm() in the Accessible Content Services module. Reposting module with core version in the name as well.

avpaderno’s picture

Status: Postponed (maintainer needs more info) » Needs review
Issue tags: +Module review
matt2000’s picture

Status: Needs review » Needs work

In order to ensure DB portability, you need to use hook_schema to create your database tables, instead of the db_query calls used currently.

Also, you should use node_load($nid) instead of db_query() to take advantage of the static caching that occurs in node_load. See for example, line 345 in your hook_nodeapi

Not a thorough review, just a couple things I noticed quickly.

Anonymous’s picture

Status: Needs work » Needs review
StatusFileSize
new33.48 KB

Attaching a new version that uses the Schema API for the installation process.

I have also changed to using a standard node module pattern for the accessibility test and guideline nodes instead of just using hook_nodeapi - which will only be used to other nodes that are being run against accessibility guidelines.

Anonymous’s picture

StatusFileSize
new49.35 KB

Adding newer version with SimpleTest module and Advanced Help module integration as well.

matt2000’s picture

Status: Needs review » Needs work

I'm pretty sure you need to check_plain($test->title) in function _accessible_content_add_guideline_form_elements(). Do a scan for any other unsanitized user output (all node data needs to be sanitized before output), then this is RTBC.

Anonymous’s picture

Status: Needs work » Needs review
StatusFileSize
new49.37 KB

Added check_plain to the hook_form and hook_views as well as the theme function for highlighting elements.

matt2000’s picture

Status: Needs review » Needs work

Yeah, but you missed the one I mentioned. :-)

accessible_content.module, line 206.

Also, I could be wrong, but I don't think the check is strictly necessary in form element #title's (cf. line 411) as theme_form_element runs it through filter_xss; but this is not the case for theme_checkboxes. But I'd rather see too many checks than not enough. :-)

Anonymous’s picture

StatusFileSize
new49.38 KB

You're right :)
Attaching updated version.

matt2000’s picture

Status: Needs work » Reviewed & tested by the community

Unless l() is specifically told to allow HTML, it will run check_plain for you, so the one on line 369 is redundant. Just FYI, no need to delay further due to that issue.

avpaderno’s picture

Status: Reviewed & tested by the community » Fixed

Thank you for your contribution! I am going to update your account.

These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

I thank all the dedicated reviewers as well.

Status: Fixed » Closed (fixed)
Issue tags: -Module review

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

avpaderno’s picture

Component: Miscellaneous » new project application
Assigned: Unassigned » avpaderno
Issue summary: View changes
Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

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