Permalink

Nice work! Thanks!

I just want to add for people why don't pick up at first; replace 'demo' in the code with the name of your module.

Also, line 10 and 11 of the second code block should read;

$select = db_query(db_rewrite_sql("SELECT nid, title FROM
{node} WHERE type = 'story' ORDER BY title"));

And, the link to the tarball doesn't work (anymore).

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.