diff --git a/booking.module b/booking.module index 6d0d54c..0f7f9c7 100644 --- a/booking.module +++ b/booking.module @@ -75,9 +75,12 @@ function booking_permission() { 'access booking form' => array( 'title' => t('Access the booking form'), ), - 'access lists' => array( - 'title' => t('Access the coming and waiting lists'), - ), + 'access coming list' => array( + 'title' => t("Access the Who's Coming list"), + ), + 'access waiting list' => array( + 'title' => t("Access the Waiting list"), + ), 'access booking summary' => array( 'title' => t('Access the summary of booking forms'), ), @@ -256,14 +259,14 @@ function booking_menu() { $items['coming'] = array( 'title' => "Who's Coming?", 'page callback' => 'booking_coming_page', - 'access arguments' => array("access lists"), + 'access arguments' => array("access coming list"), 'type' => MENU_NORMAL_ITEM, ); $items['waitinglist'] = array( 'title' => "Who's on the waiting list?", 'page callback' => 'booking_waitinglist_page', - 'access arguments' => array("access lists"), + 'access arguments' => array("access waiting list"), 'type' => MENU_NORMAL_ITEM, ); diff --git a/booking.reports.inc b/booking.reports.inc index 43fc6ad..1844f31 100644 --- a/booking.reports.inc +++ b/booking.reports.inc @@ -77,9 +77,6 @@ function booking_report_summary() { if ($person->booking_married == 'Y') $married_count++; } - - //convert that to years - //$average_age = floor((time() - $average) / (60 * 60 * 24 * 365.25)); //bookings by ecclesia $query = db_select('booking_person', 'p')