I just installed a famous Drupal module called devel themer. It works with admin and other core pages such as node. The problem is I get a fatal error with my module.
Error Message: Fatal error: Cannot unset string offsets in /home/dev-bioshock/public_html/sites/all/modules/devel_themer/devel_themer.module on line 293
My template.php
function bioshock_theme($existing, $type, $theme, $path) {
return array(
'moon_display'=>array(
'template'=>'moon'
),
);
}
My module.module
function moon_perm() {
return array('access apps content');
}
function moon_menu() {
$items['moon'] = array(
'title' => 'this is a test',
'description' => t('Detalle de un Programa'),
'page callback' => 'moon_page',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK
);
return $items;
}
function moon_page(){
$moonsvariable = 'hi this is a function';
return theme('moon_display',$moonsvariable);
}
Do I have an error within my code?