Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Adds a success message after importing transcriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsafley committed Oct 11, 2011
1 parent 52b8ea4 commit d953c77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripto.module
Expand Up @@ -343,7 +343,7 @@ function scripto_node_view_alter(&$build) {
*/
function scripto_import_transcription($form, &$form_state, $node_id) {
$form['node_id'] = array('#type' => 'value', '#value' => $node_id);
$form['submit'] = array('#type' => 'submit', '#value' => t('Import All Transcriptions'));
$form['submit'] = array('#type' => 'submit', '#value' => t('Import Transcriptions'));
$form['#submit'][] = 'scripto_import_transcription_submit';
$form['#weight'] = '20';
return $form;
Expand All @@ -361,6 +361,7 @@ function scripto_import_transcription_submit($form, &$form_state) {

// Export in HTML to preserve formatting.
$doc->export('html');
drupal_set_message('The transcriptions have been imported.');
}

/**
Expand Down

0 comments on commit d953c77

Please sign in to comment.