diff options
author | Saketh1499 | 2021-10-25 12:04:35 +0530 |
---|---|---|
committer | Saketh1499 | 2021-10-25 12:04:35 +0530 |
commit | 242d1512278a390330b5d417bc0248fcb1f9d5cc (patch) | |
tree | 465d8c59a0ed255584d27dbce029264fe1f2f547 /custom_model.module | |
parent | db8d41616dbe7a01ba4825768daad2720ca22b0d (diff) | |
download | dwsim_custom_model-242d1512278a390330b5d417bc0248fcb1f9d5cc.tar.gz dwsim_custom_model-242d1512278a390330b5d417bc0248fcb1f9d5cc.tar.bz2 dwsim_custom_model-242d1512278a390330b5d417bc0248fcb1f9d5cc.zip |
Adding additional tabs to manage proposal
Diffstat (limited to 'custom_model.module')
-rwxr-xr-x | custom_model.module | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/custom_model.module b/custom_model.module index 046c667..c65ecc3 100755 --- a/custom_model.module +++ b/custom_model.module @@ -69,7 +69,7 @@ function custom_model_menu() 'custom model manage proposal' ), 'type' => MENU_LOCAL_TASK, - 'weight' => 4, + 'weight' => 2, 'file' => 'manage_proposal.inc' ); $items['custom-model/manage-proposal/idea-proposals'] = array( @@ -81,9 +81,46 @@ function custom_model_menu() 'custom model manage proposal' ), 'type' => MENU_LOCAL_TASK, - 'weight' => 5, + 'weight' => 3, 'file' => 'manage_proposal.inc' ); + $items['custom-model/manage-proposal/approved-proposals'] = array( + 'title' => 'Approved Proposals', + 'description' => 'Approved Proposals', + 'page callback' => 'dwsim_custom_model_approved_tab', + 'access callback' => 'user_access', + 'access arguments' => array( + 'custom model manage proposal' + ), + 'type' => MENU_LOCAL_TASK, + 'weight' => 4, + 'file' => 'proposals_review_tab.inc' + ); + $items['custom-model/manage-proposal/uploaded-proposals'] = array( + 'title' => 'Uploaded Proposals', + 'description' => 'Uploaded Proposals', + 'page callback' => 'dwsim_custom_model_uploaded_tab', + 'access callback' => 'user_access', + 'access arguments' => array( + 'custom model manage proposal' + ), + 'type' => MENU_LOCAL_TASK, + 'weight' => 5, + 'file' => 'proposals_review_tab.inc' + ); + $items['custom-model/manage-proposal/completed-proposals'] = array( + 'title' => 'Completed Proposals', + 'description' => 'Completed Proposals', + 'page callback' => 'drupal_get_form', + 'page arguments' => array('dwsim_custom_model_completed_tab_form'), + 'access callback' => 'user_access', + 'access arguments' => array( + 'custom model manage proposal' + ), + 'type' => MENU_LOCAL_TASK, + 'weight' => 6, + 'file' => 'proposals_review_tab.inc' + ); $items['custom-model/manage-proposal/approve'] = array( 'title' => 'Approve Proposal', 'description' => 'Approve Proposal', |