Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lqdn_share_links
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Site
lqdn_share_links
Commits
638ea8b8
Commit
638ea8b8
authored
May 15, 2015
by
Mindiell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Converting to D7
parent
66931b44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
24 deletions
+11
-24
lqdn_share_links.info
lqdn_share_links.info
+1
-1
lqdn_share_links.module
lqdn_share_links.module
+10
-23
No files found.
lqdn_share_links.info
View file @
638ea8b8
;
$
Id
$
name
=
"Share links"
description
=
Provides
links
to
social
sites
core
=
6
.
x
core
=
7
.
x
package
=
"La Quadrature"
lqdn_share_links.module
View file @
638ea8b8
...
...
@@ -128,48 +128,35 @@ function tribune_preprocess_node(&$variables) {
*/
/**
* Implementation of hook_node
api
().
* 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
;
}
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment