update instructions
This commit is contained in:
@@ -10,9 +10,10 @@ function booking_import_data_admin($form, &$form_state)
|
||||
global $event;
|
||||
$form = array();
|
||||
|
||||
$prefix = t("<p>Upload csv file containing data to import. Minimum fields present should be <strong>nid</strong>, " .
|
||||
$prefix = t("<p>Upload csv file containing data to import. Minimum fields present should be <strong>nid</strong> or <strong>booking_tempid</strong>, " .
|
||||
" along with fields specified below. CSV Column names should match exactly (case sensitive).</p>");
|
||||
$prefix .= "<p>Note that only registration specific data like phone numbers, barcodes, etc can be updated, as well as study group membership and roles. Other data like room allocations cannot be uploaded at this time.</p>";
|
||||
$prefix .= "<p>Note that only registration specific data like phone numbers, barcodes, etc can be updated. Other data like room allocations cannot be uploaded at this time.</p>";
|
||||
$prefix .= "<p>Also note that updating study group membership and roles requires nid to be present in the input file.</p>";
|
||||
|
||||
$form['file'] = array(
|
||||
'#type' => 'file',
|
||||
@@ -204,7 +205,7 @@ function booking_import_data_admin_submit($form, &$form_state)
|
||||
array('@info' => (string) $query, '@nid' => $record[$key], '@rows' => $rows, '@values' => print_r( $update_array, true) ));
|
||||
}
|
||||
|
||||
//handle study group processing
|
||||
//handle study group processing only if the node id was used as a key
|
||||
if ($key == 'nid') {
|
||||
$update_text .= _booking_import_studygroup_info($record['nid'], $studygroups_update_array, $studygroup_roles_update_array);
|
||||
drupal_set_message(t("Updating record !nid as follows: !update", array('!nid' => $record['nid'], '!update' => $update_text)));
|
||||
|
Reference in New Issue
Block a user