prepare for release
This commit is contained in:
@@ -523,11 +523,19 @@ function booking_admin()
|
|||||||
'#size' => 150,
|
'#size' => 150,
|
||||||
'#maxlength' => 2000
|
'#maxlength' => 2000
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$form['management']['booking_export_include_fields_dynamic'] = array(
|
||||||
|
'#type' => 'select',
|
||||||
|
'#multiple' => TRUE,
|
||||||
|
'#title' => t('Not In Use - Select database fields'),
|
||||||
|
'#description' => t('Select database fields to export to CSV. Ensure you hold down control/command when selecting multiple options.'),
|
||||||
|
'#options' => _booking_get_person_fields(),
|
||||||
|
'#default_value' => variable_get('booking_export_include_fields_dynamic', ''),
|
||||||
|
);
|
||||||
$form['management']['booking_import_include_fields_dynamic'] = array(
|
$form['management']['booking_import_include_fields_dynamic'] = array(
|
||||||
'#type' => 'select',
|
'#type' => 'select',
|
||||||
'#multiple' => TRUE,
|
'#multiple' => TRUE,
|
||||||
'#title' => t('Select database fields'),
|
'#title' => t('Not In Use - Select database fields'),
|
||||||
'#description' => t('Select database fields to import from an uploaded CSV file. Ensure you hold down control/command when selecting multiple options.'),
|
'#description' => t('Select database fields to import from an uploaded CSV file. Ensure you hold down control/command when selecting multiple options.'),
|
||||||
'#options' => _booking_get_person_fields(),
|
'#options' => _booking_get_person_fields(),
|
||||||
'#default_value' => variable_get('booking_import_include_fields_dynamic', ''),
|
'#default_value' => variable_get('booking_import_include_fields_dynamic', ''),
|
||||||
|
@@ -13,8 +13,7 @@ function booking_node_presave($node) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function to create a mysql view of a complete person
|
* Function to create a mysql view of all information relating to an attendee
|
||||||
* This is still in test phase and does not return any value
|
|
||||||
*
|
*
|
||||||
* @param
|
* @param
|
||||||
* @return
|
* @return
|
||||||
@@ -123,7 +122,7 @@ function booking_load_query($node_ids = NULL, $fetchAssoc = FALSE)
|
|||||||
$result = db_query("SELECT * FROM {booking_person_view}")->fetchAllAssoc('nid');
|
$result = db_query("SELECT * FROM {booking_person_view}")->fetchAllAssoc('nid');
|
||||||
}
|
}
|
||||||
|
|
||||||
watchdog('booking', "<pre>Loading node query output:\n@info</pre>", array('@info' => print_r( $result, true)));
|
//watchdog('booking', "<pre>Loading node query output:\n@info</pre>", array('@info' => print_r( $result, true)));
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -238,6 +237,13 @@ function booking_load_query_old($node_ids = NULL, $fetchAssoc = FALSE)
|
|||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Function implementing hook_load for the node-type booking
|
||||||
|
* @see booking_load_query
|
||||||
|
*
|
||||||
|
* @param $nodes - An array of the nodes being loaded, keyed by nid
|
||||||
|
* @return nothing
|
||||||
|
*/
|
||||||
function booking_load($nodes) {
|
function booking_load($nodes) {
|
||||||
global $event;
|
global $event;
|
||||||
|
|
||||||
|
@@ -613,6 +613,6 @@ function booking_define_personspecific_tokens($node)
|
|||||||
$tokens['room-allocation'] = _booking_room_email_summary($node);
|
$tokens['room-allocation'] = _booking_room_email_summary($node);
|
||||||
$tokens['bed-type'] = _booking_room_bedtype_lookup(empty($node->booking_room_bedtype) ? '0' : $node->booking_room_bedtype);
|
$tokens['bed-type'] = _booking_room_bedtype_lookup(empty($node->booking_room_bedtype) ? '0' : $node->booking_room_bedtype);
|
||||||
}
|
}
|
||||||
watchdog('booking_debug', "<pre>Person specific tokens:\n@info</pre>", array('@info' => print_r( $tokens, true)));
|
//watchdog('booking_debug', "<pre>Person specific tokens:\n@info</pre>", array('@info' => print_r( $tokens, true)));
|
||||||
return $tokens;
|
return $tokens;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user