I would like to display a view block on a custom tab I created as follows, but the tab is always empty. The block has the option to be shown only on specified path node/%node/calendario-corsi. Is it correct to have an empty page callback?
function custom_morebuttons_menu() {
$items['node/%custom_node_calendario_corsi/calendario-corsi'] = array (
'title' => 'Calendario corsi',
'page callback' => 'custom_node_calendario_corsi_page',
'page arguments' => array(1),
'access callback' => 'user_is_logged_in',
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
return $items;
}
function custom_node_calendario_corsi_load($arg) {
$node = node_load($arg);
if($node->type == 'centro' || $node->type == 'sede') {
return $node; }
return FALSE;
}
function custom_node_calendario_corsi_page($arg) {
return '';
}