Commit c449e16c authored by Mindiell's avatar Mindiell

Converting to D7

parent 1b434373
; $Id$
name = "Proposals"
description = Provided a block (type carousel) that allows an overview of different proposals.
core = 6.x
core = 7.x
package = "La Quadrature"
......@@ -25,19 +25,20 @@ function _lqdn_proposals() {
}
/**
* Implementation of hook_block().
* Implementation of hook_block_view().
*/
function lqdn_proposals_block($op = 'list', $delta = 0, $edit = array()) {
if ($op == 'list') {
$blocks[0]['info'] = t('Proposals');
return $blocks;
}
else if ($op == 'view' && $delta == 0) {
function lqdn_proposals_block_view($delta = '') {
$block = array();
$block['subject'] = 'La Quadrature défend :';
$block['content'] = _lqdn_proposals();
return $block;
}
}
/**
* Implementation of hook_block_list_alter().
*/
function lqdn_proposals_block_list_alter(&$blocks) {
$blocks[0]['info'] = t('Proposals');
}
/**
......@@ -47,14 +48,14 @@ function lqdn_proposals_theme() {
return array(
'carousel' => array(
'template' => 'carousel',
'arguments' => array(
'variables' => array(
'proposals' => NULL,
'footer' => NULL,
),
),
'carousel_item' => array(
'template' => 'carousel-item',
'arguments' => array(
'variables' => array(
'proposal' => NULL,
),
),
......
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