0
這是我在Drupal 6中完美工作的代碼,但在Drupal 7.15中給我一個空白的白頁WSOD並查看7.x-3.3;WSOD在Drupal 7中使用Drupal 6模塊代碼?
<?php
function ajaxview_menu() {
$items = array();
$items['replies'] = array(
'title' => 'Replies',
'page callback' => 'ajaxview_replies',
'description' => 'Replies',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
return $items;
}
function ajaxview_replies($nid) {
$node = node_load($nid);
$viewName = 'Replies';
$display_id = 'default';
$myArgs = array($nid);
print views_embed_view($viewName, $display_id, $myArgs);
exit();
}
什麼改變了,我做錯了什麼?