Redirect after deleting a node
In your node_delete hook set the code for $_REQUEST['edit']['destination'].
Example
function node_delete(&$node) { $_REQUEST['edit']['destination'] = [redirect path]; }
After deleting a node the user is redireted back to the home page. Often you want to direct them back to another page.
That 'whoa' moment with Drupal
I've been developing in Drupal for a couple of years now. As LevelTen adopts Drupal, I'm seeing people have moments where something clicks and for a split second it seems like you are looking directly into the future of Web development.
That moment, for me, was in discovering the long-since-deprecated module Flexinode. Before Flexinode, all new content types in Drupal required a .module file that implemented a number of hooks and the creation of database tables and fields. This was something that really only a Web developer would do.
- Dustin's blog
- Login or register to post comments
- Read more
Survey says...
In the 2008 CMS satisfaction report by NTEN, a Non-Profit Technology group, Drupal received very high marks. This is great news for us since we recently decided to make the shift to Drupal rather than building our own CMS. Apparently, we’re not the only ones who have embraced Drupal. NTEN evaluated hundreds of nonprofit groups using a wide array of CMSes like Plone, Joomla, Convio, Blackbaud, and Antharia. Drupal had the highest number of responses and the highest number of respondents using Drupal as their primary CMS.
Grep My Drupal
- DavidM's blog
- Login or register to post comments
- Read more
Ubercart
Ubercart is an ecommerce suite for Drupal. It is a more modern alternative to the ecommerce module.
Favorite Ubercart Sites
- Login or register to post comments
- Add new comment
The node skeleton technique - combining the power of module and CCK based nodes
Nodes fall into 3 categories:
1. Generated via a module, no CCK fields
2. Generated by CCK only
3. Created via a module with CCK fields added
For L10 projects, the CCK should not be used to create new content types (node type 2 from above). In instances where you may be tempted to create a node wholly by the CCK, create a node skeleton module and enable it first, then use CCK to add fields. A node skeleton does not add its own table.
