Commit 638ea8b8 authored by Mindiell's avatar Mindiell

Converting to D7

parent 66931b44
; $Id$
name = "Share links"
description = Provides links to social sites
core = 6.x
core = 7.x
package = "La Quadrature"
......@@ -128,48 +128,35 @@ function tribune_preprocess_node(&$variables) {
*/
/**
* Implementation of hook_nodeapi().
* Implementation of hook_node_view().
*/
function lqdn_share_links_nodeapi(&$node, $op, $teaser, $page) {
if ($op == 'view' && $page) {
function lqdn_share_links_node_view($node, $view_mode, $langcode) {
$node->content['share_links'] = array(
'#value' => _lqdn_share_links($node),
'#weight' => 10,
);
}
}
}
/**
* Implementation of hook_link().
* Implementation of hook_block_list_alter().
*/
function lqdn_share_links_link($type, $node = NULL, $teaser = FALSE) {
$links = array();
if ($type == 'node' && $teaser) {
//$links[] = _lqdn_share_links($node);
}
return $links;
function lqdn_share_links_block_list_alter($blocks) {
$blocks[0]['info'] = t('Liens vers les machins de lqdn');
return $blocks;
}
/**
* Implementation of hook_block().
* Implementation of hook_block_view().
*/
function lqdn_share_links_block($op = 'list', $delta = 0, $edit = array()) {
if ($op == 'list') {
$blocks[0]['info'] = t('Liens vers les machins de lqdn');
return $blocks;
}
else if ($op == 'view') {
if ($delta == 0) {
function lqdn_share_links_block_view($delta = '') {
if ($delta == '') {
$block = array(
'subject' => '',
'content' => _lqdn_share_links_menu(),
);
}
return $block;
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment