[development] hook_link - proposal

Jeremy Epstein jazepstein at gmail.com
Wed May 10 23:29:41 UTC 2006


On 5/11/06, Just Justin <rocketfuel at spaceship.com> wrote:
> It would be great if instead of this:
>
>   $links[] = l(t('read more'), "node/$node->nid", array('title' => t('Read the rest of this posting.'), 'class' => 'read-more'));
>
> Modules were doing something like this:
>
>    $links['mymodule'] = array('title' =>  t('Read the rest of this posting.'), 'url' => "node/$node->nid", 'class' => 'read-more');

Smells like a FAPI-ified hook_link() to me. Mmmm... FAPI-ifyyyyy...

+1.

Cheers,
Jaza.


More information about the development mailing list