I am new in Drupal. I have created a form which saves the values to custom table how ever I want to display those items in a tabular format. Does any one know how to create a custom page where I can display those items.
This is what I tried: in module file
<?php $menu_items['user/campaigns/new_campaign'] = array(
'title' => 'Campaigns',
'type'=> MENU_CALLBACK,
'page callback' => 'create_campaign_form2',
'access arguments' => array('access content'),
'file' => 'campaigns.create_campaign2.inc',
'weight' => 1,
); ?>
in campaigns.create_campaign2.inc file:
<?php function create_campaign_form2()
{
echo 'Some HTML here';
}
?>
But it displays only displays the text, the entire css is removed please let me know what should I do. Sorry if the question is too basic.
return;
statement to the callback function. – develkar Dec 15 '12 at 10:03