Создание пустой страницы drupal
09.08.2015
Создаем ноду и в template.php добавляем
function THEME_preprocess_page(&$variables) {
if (arg(0) && arg(1) && arg(0) == 'node' && arg(1) == NID) {
$variables['page']['content']='';
}
}
В своем модуле пишем
function MODULE_menu() {
$items['path'] = array(
'title' => t('Title'),
'page callback' => 'MODULE_page_function',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
return $items;
}
function MODULE_page_function() {
return '';
}
#Drupal
