I have declared two items in my hook menu.
//Calls a function that enables inputting/updating data of a particular template.
$items['user/%user/myid_inputting'] = array(
'title' => 'MyID Inputting',
'description' => 'Inputting data for a particular data',
'page callback' => 'myid_inputting',
'page arguments' => array(1),
'access arguments' => array('perform_regular_task'),
'file' => 'includes/myid_inputting.inc',
'type' => MENU_LOCAL_TASK,
'weight' => -20,
);
//Calls a function that enables ID printing
$items['user/%user/myid_printing'] = array(
'title' => 'MyID Printing',
'page callback' => 'myid_printing',
'page arguments' => array(1),
'access arguments' => array('perform_regular_task'),
'file' => 'includes/myid_printing.inc',
'type' => MENU_LOCAL_TASK,
'weight' => -19,
);
I had used two separate files for the two items. Is that best practice in Drupal? I just notice some functions that I used are redundant when separating the code between the two. What are advantages and disadvantages of doing so?