Commit 0d30a8bf authored by Mindiell's avatar Mindiell
Browse files

Converting to D7

parent 6a6846d7
; $Id$
name = "Timeline"
description =
core = 6.x
core = 7.x
package = "La Quadrature"
<?php
function lqdn_dossiers_block($op = 'list', $delta = 0, $edit = array()) {
global $language;
if ($op == 'list') {
function lqdn_dossiers_block_list_alter(&$blocks) {
$result = db_query("SELECT `did`, `machine_name` FROM {lqdn_dossiers}");
while ($data = db_fetch_object($result)) {
$blocks['timeline-' . $data->did]['info'] = t('Timeline of the dossier @dossier',
array('@dossier' =>$data->machine_name));
}
return $blocks;
}
}
elseif ($op == 'view') {
function lqdn_dossiers_block_view($delta = '') {
global $language;
$query = "
SELECT d.`did`, d.`machine_name`, c.`name`, c.`language`
FROM {lqdn_dossiers} d
......@@ -25,7 +23,6 @@ function lqdn_dossiers_block($op = 'list', $delta = 0, $edit = array()) {
return $block;
}
}
}
}
function _lqdn_timeline_block($_dossier) {
......@@ -35,4 +32,4 @@ function _lqdn_timeline_block($_dossier) {
while ($data = db_fetch_object($result))
$events[] = $data;
}
\ No newline at end of file
}
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