2011-03-15 2 views
0

devel themer라는 유명한 Drupal 모듈을 설치했습니다. 관리자 및 노드와 같은 다른 핵심 페이지에서 작동합니다. 문제는 제 모듈에 치명적인 오류가 발생했습니다.드루팔 (Drupal 7 - 사용자 정의 모듈로 devel 테마 플러그인으로 치명적인 오류가 발생했습니다.

오류 메시지 : 치명적인 오류 : 수 행에 /home/dev-bioshock/public_html/sites/all/modules/devel_themer/devel_themer.module에없는 설정되지 않은 문자열 오프셋 (293)

내 template.php

function bioshock_theme($existing, $type, $theme, $path) { 

    return array(
     'moon_display'=>array(
      'template'=>'moon' 

     ), 

    ); 

} 

내 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); 

} 

나는 내 코드에서 오류가 있습니까?

답변

관련 문제