/[drupal]/contributions/modules/transcription/transcription.module
ViewVC logotype

Diff of /contributions/modules/transcription/transcription.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.4, Tue Oct 28 14:50:12 2008 UTC revision 1.5, Tue Oct 28 14:53:29 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: transcription.module,v 1.3 2008/10/28 14:43:59 aaron Exp $  // $Id: transcription.module,v 1.4 2008/10/28 14:50:12 aaron Exp $
3    
4  // Initial code by Jonathan DeLaigle (grndlvl).  // Initial code by Jonathan DeLaigle (grndlvl).
5  // Modified by Aaron Winborn for the Media Transcriptions module.  // Modified by Aaron Winborn for the Media Transcriptions module.
# Line 158  function transcription_field_formatter($ Line 158  function transcription_field_formatter($
158  function transcription_widget_info() {  function transcription_widget_info() {
159    return array(    return array(
160      'transcription' => array(      'transcription' => array(
161        'label' => 'Transcription',        'label' => 'Media Transcription',
162        'field types' => array('transcription')        'field types' => array('transcription')
163      )      )
164    );    );
# Line 184  function transcription_widget($op, &$nod Line 184  function transcription_widget($op, &$nod
184            if ($data['transcription'] != '') {            if ($data['transcription'] != '') {
185              $form[$field['field_name']][$delta] = array(              $form[$field['field_name']][$delta] = array(
186                '#type' => 'fieldset',                '#type' => 'fieldset',
187                '#title' =>  t('Transcription') .' '. ($delta+1),                '#title' =>  t('Media Transcription') .' '. ($delta+1),
188                '#description' => t('In order to add additional fields you must click %submit or %preview.', array('%submit' => t('Submit'), '%preview' => t('Preview'))),                '#description' => t('In order to add additional fields you must click %submit or %preview.', array('%submit' => t('Submit'), '%preview' => t('Preview'))),
189                '#collapsible' => true,                '#collapsible' => true,
190                '#collapsed' => true,                '#collapsed' => true,
# Line 217  function transcription_widget($op, &$nod Line 217  function transcription_widget($op, &$nod
217          foreach (range($delta, $delta + 5) as $delta) {          foreach (range($delta, $delta + 5) as $delta) {
218            $form[$field['field_name']][$delta] = array(            $form[$field['field_name']][$delta] = array(
219              '#type' => 'fieldset',              '#type' => 'fieldset',
220              '#title' =>  t('Transcription') .' '. ($delta+1),              '#title' =>  t('Media Transcription') .' '. ($delta+1),
221              '#description' => t('In order to add additional fields you must click <strong>Submit</strong> or <strong>Preview</strong>.'),              '#description' => t('In order to add additional fields you must click <strong>Submit</strong> or <strong>Preview</strong>.'),
222              '#collapsible' => true,              '#collapsible' => true,
223              '#collapsed' => false,              '#collapsed' => false,

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.2