[documentation] [Documentation bug] hook_link isn't just for links

fax8 drupal-docs at drupal.org
Fri Jan 5 19:51:39 UTC 2007


Issue status update for 
http://drupal.org/node/107148
Post a follow up: 
http://drupal.org/project/comments/add/107148

 Project:      Documentation
 Version:      <none>
 Component:    Documentation in CVS
 Category:     bug reports
 Priority:     minor
 Assigned to:  bdragon
 Reported by:  bdragon
 Updated by:   fax8
-Status:       patch (code needs work)
+Status:       patch (ready to be committed)

my video module add video size and lenght to links in 4.7
(example: http://www.windsmpeg.tk/video+type/full+video)
they are only simple text and reading hook_link original
documentation I was not able to understand that I can also add simple
text.




fax8



Previous comments:
------------------------------------------------------------------------

Fri, 05 Jan 2007 19:05:49 +0000 : bdragon

Attachment: http://drupal.org/files/issues/hook_link_clarification.patch (2.17 KB)

The documentation on hook_link doesn't mention that having a title
without an href will be themed without running through a l() call. This
is a useful fact to know, and is contrary to the current documentation.




------------------------------------------------------------------------

Fri, 05 Jan 2007 19:14:04 +0000 : fax8

+1 Original documentation is really confused and incorrect.


Fabio Varesano




------------------------------------------------------------------------

Fri, 05 Jan 2007 19:33:33 +0000 : Caleb G

For us following along at home - why is this useful to know? (example?)




------------------------------------------------------------------------

Fri, 05 Jan 2007 19:51:10 +0000 : bdragon

People porting custom 4.7 modules that used non-link links to show
summary statistics and such.


*slaps forehead*
Doh! Forgot to provide an example....






More information about the documentation mailing list