If you want to call the function after submit of the form.
Add this part in hook_menu:
function MYMODULE_menu(){
$items['project'] = array(
'title' => 'Project List' ,
'page callback' => 'project_list1',
'access callback' => TRUE,
'menu_name' => 'devel',
'type' => MENU_CALLBACK,
);
return $items;
}
If you want the menu to appear in main menu you can make these changes:
'menu_name' => 'main-menu',
'type' => MENU_NORMAL_ITEM,
Your function here:
function project_list1(){
/////code
}
And then in your submit function, you can directly add:
//Add this in the last line of your submit function
drupal_goto('project');
This will directly go to the path 'project' and call your function
project_list1()