There are all kinds of places in project* where we need to find a nid via a project_uri or vice versa. I've got a patch that adds two helper functions to consolidate all these queries in one place.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 367577-2.project_uri_cleanup.patch | 3.88 KB | dww |
| #1 | 367577-1.project_issue_uri_cleanup.patch | 1.73 KB | dww |
| #1 | 367577-1.project_uri_cleanup.patch | 4.2 KB | dww |
Comments
Comment #1
dwwAny objections?
Comment #2
dwwHad a change to behavior in project_project_retrieve(), so I added a check for type == 'project_project'.
Also removed some stray newlines in the helpers.
Comment #3
dwwAfter review from aclight in IRC, committed to HEAD of both modules.