Closed (fixed)
Project:
Addnode
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Mar 2007 at 15:00 UTC
Updated:
17 May 2007 at 08:33 UTC
The 'Select or Create' display is using Content Type Type rather than Content Type Name...
Comments
Comment #1
Lionfish commentedFixed in v1.1 (next version I'll upload).
Used the following function to get the type's human name:
if anyone knows of a drupal function to do a similar thing (or a better way of coding it) please post below!
Thanks,
Mike.
Comment #2
jlinares commentedIf you're in addnode.module, you should prefix your function with 'addnode'. That is, _addnode_get_human_type_name.
Comment #3
nevets commentedCore contains the function node_get_types() to do this. You would call it something like
Comment #4
Lionfish commentedThanks nevets and jlinares, I've renamed my functions and am now using node_get_types.
(btw: should handlers be prefixed with an underscore?)
Comment #5
(not verified) commented