text "add (machine name for content-type)" not the best

taite11 - January 15, 2009 - 23:55
Project:Popups: Add and Reference
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

So, right now the format it uses for the link to add a referenced node is "add" and then the machine name for that content type. So for me it will show up "Add photo_cck".

Wouldn't it be better to use the human name for the content type? That way, on my system it would be "Add album"

#1

starbow - January 16, 2009 - 19:09
Category:task» feature request

You're right, that would be better.

#2

macrocosm - February 4, 2009 - 11:29

You ever figure this out?
Im just thinking about overriding it at the template level to avoid messing with the code.

#3

Cloudy - February 6, 2009 - 17:56
Status:active» needs review

Patch to get the human readable name from $all_types and use it in the link title.

AttachmentSize
popups_ref_human_readable.patch 876 bytes

#4

starbow - February 6, 2009 - 18:41

Fantastic, thanks for the patch.

#5

starbow - February 16, 2009 - 06:54
Status:needs review» fixed

Integrated into 1.0RC1

#6

System Message - March 2, 2009 - 07:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.