I took a look back at the User Directory module and noticed that some of the ways I did a few things were outside of Drupal's coding standards. I went back and corrected these issues. There is no new functionality, but the coding is proper and the entries within the tree structure are in a proper Drupal table.
| Attachment | Size |
|---|---|
| user_directory_current.zip | 2.23 KB |
Comments
Just what I was looking for!
Sat, 01/23/2010 - 23:17 — AnonymousJust what I was looking for! What version of Drupal is this intended for, though? I'm getting an error: warning: Invalid argument supplied for foreach() in /.../drupal/includes/theme.inc on line 1335.
Drupal Versions
Sun, 01/24/2010 - 15:40 — bsdixonI have been using it for Drupal 6, but I think because I am using core functions that it should not change much between 6 and 7. I'll take a look at the error as it has something to do with the way I am populating the tree. It should work regardless though (the message just shows up as a warning). I will post updates as soon as I can.
Thanks, bsdixon! I could be
Mon, 01/25/2010 - 23:06 — AnonymousThanks, bsdixon! I could be doing something wrong too.This particular Drupal 6 site has Content Profile module installed so I think this has something to do with it. Cheers, S
Issue Solved
Fri, 01/29/2010 - 18:03 — bsdixonI found the issue. Take a look at the module code and modify this line:
for ($i = 0; $i < count($results); $i++) {