Hi fellows, I'm having a really strange error, and I don't know if its of my template or my module.
I created a module which use blocks:
--------
function mymodule_block($op = 'list', $delta = 0) {
if (user_access('access content')) {
if ($op == 'list') {
$block = array();
$block[0]['info'] = t('Title 1');
$block[1]['info'] = t('Title 2');
$block[2]['info'] = t('Title 3');
$block[3]['info'] = t('Title 4');
$block[4]['info'] = t('Title 5');
return $block;
}
}
if($op == 'view') {
$block = array();
switch($delta) {
case 0:
if(user_access('access content')) {
$block['subject'] = l("
".t('Title 1')."
", "module/categories/all", array(), NULL, NULL, FALSE, TRUE);
$block['content'] = "
";
}
break;
...
-----
This block was implemented at start at taxonomies (an odd hack), it was working fine with taxonomies module, but I moved to my module to clean all drupal.
After the move, none of the block was working, even drupal shows in the admin page the modules and are active. I tried to check the $op in mymodule_block(), but instead a string it was show an object:
--------------
stdClass Object
(
[module] => user
[delta] => 1
[status] => 1
[weight] => 0
[region] => 0