Project

General

Profile

« Previous | Next » 

Revision e3f322ae

Added by Francisco Revilla about 14 years ago

fixing ticket #762, added /media and /media/subtree implementations in order to load the media files in the portal

View differences:

modules/cdm_dataportal/cdm_dataportal.module
704 704

  
705 705
    $form['cdm_dataportal_descriptions_separated'] = array(
706 706
    '#type' => 'checkbox',
707
    '#title' => t('Separate Desriptions'),
707
    '#title' => t('Separate Descriptions'),
708 708
    '#default_value' => variable_get('cdm_dataportal_descriptions_separated', 0),
709 709
    '#description' => t('By default corresponding elements of different descriptions are joined together'
710 710
    .' into a common section per feature (i.e. type of description).'
711 711
    .' Check this box to allow displaying all descriptions separately.')
712 712
    );
713 713

  
714
    //---- IMAGES ----//
715
    $form['images'] = array(
716
    '#type' => 'fieldset',
717
    '#title' => t('Images'),
718
    '#collapsible' => TRUE,
719
    '#collapsed' => FALSE,
720
    );
714 721
    $options = cdm_rankVocabulary_as_option();
715 722
    array_unshift($options, '-- DISABLED --');
716
    $form['image_hide_rank'] =  array(
723
    $form['images']['image_hide_rank'] =  array(
717 724
    '#type'          => 'select',
718 725
    '#title'         => t('Hide Images for Taxa above'),
719 726
    '#default_value' => variable_get('image_hide_rank', '0'),
720 727
    '#options'       => $options,
721 728
    '#description'   => t(''),
722 729
    );
730
    //show media
731
    $selectShowMedia = array(0 => "Show only taxon media",
732
                             1 => "Show taxon and child taxon media");
733
    $form['images']['cdm_dataportal_show_media'] = array(
734
    '#type' => 'select',
735
    '#title' => t('Available media files'),
736
    '#default_value' => variable_get('cdm_dataportal_show_media', false),
737
    '#options' => $selectShowMedia,
738
    '#description'   => t('Select if a taxon should show only his media or also child media.')
739
    );
723 740

  
724 741
    // --- find taxa ---- //
725 742
    $form['findtaxa'] = array(
......
772 789
    '#default_value' => variable_get('cdm_dataportal_findtaxa_media_maxRows', 1),
773 790
    '#description' => t('')
774 791
    );
792
    
775 793
	return system_settings_form($form);
776 794
	
777 795
}

Also available in: Unified diff