Lesson 08: Lesson #08 - Node Access & db_rewrite_sql
Update: Now with VictorKane's awesome Class Notes!
This lesson provides an introduction to Drupal's node access system. Initially, we'll create a basic module that uses hook_db_rewrite_sql() to implement a node access restriction system.
Once the concepts are grasped we'll lift the hood on some other Drupal access control modules and see how these work using Drupal's built-in node_grant abilities.
There were 75 participants in IRC and 50 people in the skypecast today.
Basic Node Access Control
- Create a basic module that restricts access to anonymous users but allows access for authenticated users on certain nodes.
- Our personal access table and pre-populating it (for demonstration purposes).
- hook_form_alter() to add a checkbox to the node edit form.
- hook_nodeapi() to create a flag on the node and apply viewing access control.
- hook_db_rewrite_sql() to implement the list view access control.
- Sunday 18 Feb 11am UTC 2007-02-18T11:00:00 0 down %days% days, %hours%:%mins%:%secs% to go
IRC
Logs- Class Notes
~ No screencast this week ~
jQuery reference
Firebug plugin
Lesson Plan
Dojo RSS feed
Lesson 07: An intro to jQuery magic
On April 8th, 2007, josh_k recast this lesson, and the updated content with screencast can be found at jQuery Resurrected
We'll convene in IRC's #drupal-dojo channel for text chat, use Skype audio, and Webavant's VNC Viewer for visual appeal and spend a couple hours addressing topics of concern to up-and-coming Drupalists.
Possible topics: Node access, or simple jQuery magic. Josh is relatively new to both of these, but he's promised to show us enough tidbits to get the ball rolling and whet appetites.


































