カスタム モジュールのメニュー コールバックに基づいて、簡単なサンキュー ページ (例: /product/3/thankyou) を作成しました。コンテンツは通常のページ レイアウトで問題なく表示されますが、領域とブロックを表示したいのですが、表示されません。提案?
// menu callback
function custom_menu() {
$items = array();
$items['product/%/thankyou'] = array(
'page callback' => 'custom_product_thankyou',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK
);
return $items;
}
// theme function
function custom_theme() {
return array(
'product_review_thankyou' => array(
'variables' => array('node' => NULL),
'template' => 'product_review_thankyou',
),
);
}
// page callback
function custom_product_thankyou() {
$node = node_load(arg(1));
$output = theme('product_review_thankyou', array('node' => $node));
return $output;
}