Skip to content

Instantly share code, notes, and snippets.

@erikfrerejean
Last active December 16, 2015 11:18
Show Gist options
  • Save erikfrerejean/5425890 to your computer and use it in GitHub Desktop.
Save erikfrerejean/5425890 to your computer and use it in GitHub Desktop.
<?php
/* BLGG - Example */
function blgg_preprocess_node(&$vars)
{
// ff controleren wat het juiste element is !!!!
$block = &$vars['content']['links']['print_html']['#links']['print_html'];
if (!empty($block))
{
$_img = drupal_get_path('theme', 'agrox') . '/images/rss.png';
$_text = t($block['title']);
$title = theme('image', array('path' => $_img, 'alt' => $_text, 'title' => $_text, 'attributes' => array('class' => array('rss-icon'))));
$block['title'] = substr_replace($block['title'], $title, 0, 0);
$block['html'] = TRUE;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment