re-enable option
This commit is contained in:
@@ -119,11 +119,9 @@ function booking_manual_email_form($form, &$form_state, $input_option = "")
|
|||||||
}
|
}
|
||||||
$options[$data->nid]['group_roles'] = $group_text;
|
$options[$data->nid]['group_roles'] = $group_text;
|
||||||
}
|
}
|
||||||
/*
|
if ($input_option == 'unpaid') {
|
||||||
if ($preselected == 'unpaid') {
|
|
||||||
$values[$data->nid] = ($data->booking_payment_complete == 'Y' || $data->booking_status != 1) ? FALSE : TRUE;
|
$values[$data->nid] = ($data->booking_payment_complete == 'Y' || $data->booking_status != 1) ? FALSE : TRUE;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$form['table'] = array (
|
$form['table'] = array (
|
||||||
@@ -131,7 +129,8 @@ function booking_manual_email_form($form, &$form_state, $input_option = "")
|
|||||||
//'#multiple' => TRUE,
|
//'#multiple' => TRUE,
|
||||||
'#header' => $header,
|
'#header' => $header,
|
||||||
'#options' => $options,
|
'#options' => $options,
|
||||||
'#default_value' => array("1814" => TRUE),
|
//'#default_value' => array("1814" => TRUE),
|
||||||
|
'#default_value' => $values,
|
||||||
'#empty' => t('No attendees found.'),
|
'#empty' => t('No attendees found.'),
|
||||||
'#attributes' => array('id' => 'sort-table'),
|
'#attributes' => array('id' => 'sort-table'),
|
||||||
'#prefix' => '<div id="manual-email-attendees-items">',
|
'#prefix' => '<div id="manual-email-attendees-items">',
|
||||||
|
@@ -290,8 +290,10 @@ function booking_menu() {
|
|||||||
$items['admin/booking/manual-email'] = array(
|
$items['admin/booking/manual-email'] = array(
|
||||||
'title' => 'Manually Email People',
|
'title' => 'Manually Email People',
|
||||||
'description' => 'Send manual email to registered people',
|
'description' => 'Send manual email to registered people',
|
||||||
'page callback' => 'drupal_get_form',
|
'page callback' => 'drupal_get_form',
|
||||||
'page arguments' => array('booking_manual_email'),
|
'page arguments' => array('booking_manual_email_form'),
|
||||||
|
//'page callback' => 'drupal_get_form',
|
||||||
|
//'page arguments' => array('booking_manual_email'),
|
||||||
'access arguments' => array('access administration pages'),
|
'access arguments' => array('access administration pages'),
|
||||||
'type' => MENU_NORMAL_ITEM,
|
'type' => MENU_NORMAL_ITEM,
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user