diff --git a/booking.install b/booking.install index 3f75a80..220be5a 100644 --- a/booking.install +++ b/booking.install @@ -780,7 +780,7 @@ function booking_schema() { 'booking_eventid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'), 'booking_node_id' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'), 'booking_studygroup_id' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'), - 'booking_session_id' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10', default => 0), + 'booking_session_id' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10', 'default' => 0), //'booking_is_leader' => array('type' => 'varchar', 'length' => '1', 'not null' => FALSE), //'booking_is_helper' => array('type' => 'varchar', 'length' => '1', 'not null' => FALSE), 'booking_studygroup_role' => array('type' => 'varchar', 'length' => '100', 'not null' => FALSE, 'default' => 0), diff --git a/booking.module b/booking.module index 4957988..2ed3c4a 100644 --- a/booking.module +++ b/booking.module @@ -366,7 +366,7 @@ function booking_menu() { 'title' => 'Add Study Group', 'description' => 'Add Study Group definition', 'page callback' => 'drupal_get_form', - 'page arguments' => array('booking_studygroups_add_form', true), + 'page arguments' => array('booking_studygroups_define_form', true), 'access arguments' => array("edit study groups"), 'type' => MENU_LOCAL_ACTION, ); diff --git a/booking.studygroups.inc b/booking.studygroups.inc index 4f3c6c7..ec91fa0 100644 --- a/booking.studygroups.inc +++ b/booking.studygroups.inc @@ -1627,6 +1627,7 @@ function booking_studygroups_view_form($node, &$form_state, $group_id) { $is_reading_group = FALSE; $form = array(); $options = array(); + $rows = array(); $last_session = ""; $class_array = array( 0 => "normal-row",