diff options
author | Sashi20 | 2020-06-01 14:27:31 +0530 |
---|---|---|
committer | Sashi20 | 2020-06-01 14:27:31 +0530 |
commit | 813f4abd49cba8d0891f3a0b89480441c5e7d457 (patch) | |
tree | 5f6efe7ab9e8e3e0389001c17712e3358d0a2b76 /arduino_projects_blog.module | |
parent | 119891e3f4c85cdbc3fe6a480ed41eeaf2e16a58 (diff) | |
download | arduino_projects_blog-813f4abd49cba8d0891f3a0b89480441c5e7d457.tar.gz arduino_projects_blog-813f4abd49cba8d0891f3a0b89480441c5e7d457.tar.bz2 arduino_projects_blog-813f4abd49cba8d0891f3a0b89480441c5e7d457.zip |
Add pages to display completed and in progress projects
Diffstat (limited to 'arduino_projects_blog.module')
-rwxr-xr-x | arduino_projects_blog.module | 58 |
1 files changed, 55 insertions, 3 deletions
diff --git a/arduino_projects_blog.module b/arduino_projects_blog.module index 17d3d3d..9b5d02a 100755 --- a/arduino_projects_blog.module +++ b/arduino_projects_blog.module @@ -202,6 +202,30 @@ function arduino_projects_blog_menu() 'file' => 'upload_project.inc', 'weight' => 2 ); + $items['arduino-projects/code-approval'] = array( + 'title' => 'Manage Project Approval', + 'description' => 'Manage Project Approval', + 'page callback' => 'introduction_approval', + 'access arguments' => array( + 'arduino projects bulk manage code' + ), + 'type' => MENU_NORMAL_ITEM, + 'file' => 'code_approval.inc' + ); + $items['arduino-projects/code-approval/introduction'] = array( + 'title' => 'Introduction Approval', + 'description' => 'Introduction Approval', + 'page callback' => 'drupal_get_form', + 'page arguments' => array( + 'introduction_approval_form' + ), + 'access arguments' => array( + 'arduino projects bulk manage code' + ), + 'type' => MENU_DEFAULT_LOCAL_TASK, + 'weight' => 1, + 'file' => 'code_approval.inc' + ); $items['arduino-projects/code-approval/step'] = array( 'title' => 'Step approval form', 'description' => 'Step approval form', @@ -212,8 +236,8 @@ function arduino_projects_blog_menu() 'access arguments' => array( 'arduino projects bulk manage code' ), - 'type' => MENU_DEFAULT_LOCAL_TASK, - 'weight' => 1, + 'type' => MENU_LOCAL_TASK, + 'weight' => 2, 'file' => 'code_approval.inc' ); $items['arduino-projects/code-approval/bulk'] = array( @@ -227,7 +251,7 @@ function arduino_projects_blog_menu() 'arduino projects bulk manage code' ), 'type' => MENU_LOCAL_TASK, - 'weight' => 2, + 'weight' => 3, 'file' => 'code_approval.inc' ); $items['arduino-projects/abstract-approval/bulk'] = array( @@ -295,6 +319,34 @@ function arduino_projects_blog_menu() 'type' => MENU_CALLBACK, 'file' => 'download.inc' ); + $items['arduino-projects/projects-in-progress'] = array( + 'title' => 'Projects in Progress', + 'page callback' => 'arduino_projects_in_progress', + 'access arguments' => array( + 'arduino projects download code' + ), + 'file' => 'project_details.inc' + ); + $items['arduino-projects/completed-projects'] = array( + 'title' => 'Completed Projects', + 'page callback' => 'arduino_projects_completed', + 'access arguments' => array( + 'arduino projects download code' + ), + 'file' => 'project_details.inc' + ); + $items['arduino-projects/project-details'] = array( + 'title' => 'Projects Details', + 'page callback' => 'drupal_get_form', + 'page arguments' => array( + 'arduino_projects_details' + ), + //'page callback' => 'arduino_projects_details', + 'access arguments' => array( + 'arduino projects download code' + ), + 'file' => 'run.inc' + ); $items['arduino-projects/full-download/project'] = array( 'title' => 'Code Download', 'description' => 'Code Download', |