function themename_preprocess_node in Service links 6.2
Same name and namespace in other branches
- 6 template.php \themename_preprocess_node()
- 7.2 template.php \themename_preprocess_node()
Example 2: Creating the variable '$twitter' for the template file 'node.tpl.php' containing the services specified by their ids (i.e. twitter).
File
- ./
template.php, line 38 - Various examples to overwrite the theme settings.
Code
function themename_preprocess_node(&$vars) {
if (module_exists('service_links')) {
if (user_access('access service links') && service_links_show($vars['node'])) {
$vars['twitter'] = theme('links', array(
service_links_render_some('twitter', $vars['node']),
));
}
}
}