New function for viewing list all each study group

This commit is contained in:
2014-02-03 10:41:06 +11:00
parent 9d936bab1b
commit 2cce6b0505
2 changed files with 11 additions and 5 deletions

View File

@@ -305,9 +305,8 @@ function booking_menu() {
$items['admin/config/booking/studygroups/view'] = array(
'title' => 'View All Study Groups',
'description' => 'View Study Group memberships',
'page callback' => 'drupal_get_form',
'page arguments' => array('booking_studygroups_view_form', false),
'access arguments' => array('access administration pages'),
'page callback' => 'booking_studygroups_view_summary',
'access arguments' => array("access administration pages"),
//'type' => MENU_NORMAL_ITEM,
);
@@ -315,7 +314,7 @@ function booking_menu() {
'title' => 'View Study Group',
'description' => 'View Study Group memberships',
'page callback' => 'drupal_get_form',
'page arguments' => array('booking_studygroups_view_form', true, 4),
'page arguments' => array('booking_studygroups_view_form', 4),
'access arguments' => array('access administration pages'),
//'type' => MENU_NORMAL_ITEM,
);

View File

@@ -463,10 +463,17 @@ function booking_studygroups_calculate() {
//watchdog('booking', "Attendee list final version: @info", array('@info' => var_export($attendees, TRUE)));
}
/**
* Function for listing the study groups and links to view each one
*/
function booking_studygroups_view_summary() {
}
/**
* Function for viewing who belongs to which study group
*/
function booking_studygroups_view_form($node, &$form_state, $single_view, $group_id = -1) {
function booking_studygroups_view_form($node, &$form_state, $group_id) {
global $event;
$form = array();