I'm trying to create a page through hook_menu()
so I can add my custom block with context instead.
function my_module_menu() {
$items['my_page'] = array(
'title' => 'my_page',
'description' => 'my_page',
'page callback' => 'my_function',
'access callback' => true,
);
$items['my_page2'] = array(
'title' => 'my_page2',
'description' => 'my_page2',
'page callback' => 'my_function',
'access callback' => true,
);
return $items;
}
function my_function() {
return '';
}
Is it the right way to do it? I have some bug from time to time, like the block goes missing on those pages. Could it be related to that?