Commit 94fc5810 authored by Mindiell's avatar Mindiell

Converting to D7

parent 31ee168e
......@@ -4,7 +4,7 @@
/**
* Hook perm
*/
function lqdn_ia_perm() {
function lqdn_ia_permission() {
return array("Access to LQDN administration page"); //Access to LQDN administration page
// Accéder à la page d'administration LQDN
}
......@@ -24,11 +24,9 @@ function lqdn_ia_menu() {
}
/**
* Hook block
* Hook block list alter
*/
function lqdn_ia_block($op = 'list', $delta = 0, $edit = array()) {
if ($op == 'list') {
$blocks = array();
function lqdn_ia_block_list_alter(&$blocks) {
$blocks[0] = array(
'info' => t('Link to administration page'), //Lien vers la page d'administration
'cache' => BLOCK_CACHE_GLOBAL,
......@@ -36,9 +34,13 @@ function lqdn_ia_block($op = 'list', $delta = 0, $edit = array()) {
'status' => 1,
'region' => 'content_top',
);
return $blocks;
}
elseif ($op == 'view' AND $delta==0) {
}
/**
* Hook block view
*/
function lqdn_ia_block_view($delta = '') {
if ($delta=='') {
$block = array(
'subject' => '',
'content' => '<p style="text-align:center;"><strong>' . l(t('Site Administration'), 'admin/lqdn') . '</strong></p>', //Administration du site
......
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