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.

Comments

dww’s picture

Status: Active » Needs review
StatusFileSize
new4.2 KB
new1.73 KB

Any objections?

dww’s picture

StatusFileSize
new3.88 KB

Had 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.

dww’s picture

Status: Needs review » Fixed

After review from aclight in IRC, committed to HEAD of both modules.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.