content_fields(NULL, $node['type']);
Will return all fields, not fields for that content type
http://drupalcontrib.org/api/drupal/contributions--cck--content.module/f...
$type_info = content_types($node['type']);
$fields = $type_info['fields'];
is the way to get info about all fields for a specific content type (I believe; off top of head).
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 1373526_serivces_content_fields.patch | 1.62 KB | hefox |
| #6 | 1373526_serivces_content_fields.patch | 1.61 KB | hefox |
Comments
Comment #1
hefox commentedComment #2
hefox commentedBTW, why isn't that area using the content_access function?
Comment #3
kylebrowning commentedcan you provide a patch?
Im not sure why its not, but I never thought it needed to be.
I have nit been focusing on the 6.x version of things
Comment #4
kylebrowning commentedCotto can you double check this is needed/better and if so just go ahead and commit it.
Comment #5
hefox commentedHere's a /quickie/ patch against whatever version I'm running that combines the content type + content_access change. It's of course, not tested at all.
Comment #6
hefox commentedRight... the patch...
Comment #7
hefox commentedCourse the patch has a typo
Comment #8
kylebrowning commentedComment #9
kylebrowning commentedThanks!