Drupal 7 で独自のモジュールを構築しようとしています。
だから私は「月」と呼ばれる単純なモジュールを作成しました
function moon_menu() {
$items = array();
$items['moon'] = array(
'title' => '',
'description' => t('Detalle de un Programa'),
'page callback' => 'moon_page',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK
);
return $items;
}
function moon_page(){
$id = 3;
$content = 'aa';
}
moon_page() 関数では、テーマ ファイルからカスタム テンプレート 'moon.tpl.php' をロードするのが好きです。
これは可能ですか?