[development] Altering links

Salvatore De Paolis iwkse at gmx.com
Thu Nov 18 20:01:38 UTC 2010


On Thu, 18 Nov 2010 12:31:23 -0700
Carl Wiedemann <carl.wiedemann at gmail.com> wrote:

>  $vars['links'] is generated by theme_links(). Look at
> template_preprocess_node() in includes/theme.inc:
> http://drupalcode.org/viewvc/drupal/drupal/includes/theme.inc?revision=1.415.2.27&view=markup&pathrev=DRUPAL-6-18-SECURITY#l1955
> 
> $variables['links']     = !empty($node->links) ? theme('links',
> $node->links, array('class' => 'links inline')) : '';

Yes i misunderstood it, i thought it was some kind of overriding
 
> Unless you absolutely consider the icons to be content and not styling, CSS
> is the way to go instead of <img> tags. Different CSS classes may be applied
> via theme_links() to indicate whether comments exist. CSS also allows for
> the use of sprites.

As i said in the previous comment, in some cases, i'd want only the icon which
i suppose i can't achieve only with CSS.


More information about the development mailing list