Closed (fixed)
Project:
Node Family
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
15 Jan 2007 at 11:39 UTC
Updated:
29 Jan 2007 at 21:46 UTC
In the issue to create a 'my foo' block (http://drupal.org/node/103834) I needed the functions nodefamily_get_child_types() and function nodefamily_get_parent_types() to be a tad more flexible: they should optionally return all types.
This patch achieves that, buy making the $type parameter optional: if it is not passed along, the API will return not just the children/parents for that $type, but all possible children/parents.
| Comment | File | Size | Author |
|---|---|---|---|
| nodefamily_child_parent_grabbing_flex.patch | 1.28 KB | Bèr Kessels |
Comments
Comment #1
fagothanks, nice addition. committed.
Comment #2
(not verified) commented