Project

General

Profile

« Previous | Next » 

Revision 78292e72

Added by Andreas Kohlbecker over 10 years ago

removing interim solution which preserved hard coded name render definitions in themes - all definition arrays are now migrated to variables

View differences:

7.x/modules/cdm_dataportal/settings.php
816 816
          'scope' => 'footer'
817 817
      )
818 818
  );
819

  
820
  //TODO remove after all portals are using the settings
821
  $default_part_definitions = theme('get_partDefinition', array());
822
  if(!is_array($default_part_definitions)) {
823
    $default_part_definitions = unserialize(CDM_PART_DEFINITIONS_DEFAULT);
824
  }
819

  
820
  $default_part_definitions = unserialize(CDM_PART_DEFINITIONS_DEFAULT);
825 821

  
826 822
  $form['taxon_name'][CDM_PART_DEFINITIONS] = array(
827 823
      '#type' => 'textarea',
......
910 906
           </pre>',
911 907
  );
912 908

  
913
  //TODO remove after all portals are using the settings
914
  $default_render_templates = theme('get_nameRenderTemplate', array());
915
  if(!is_array($default_render_templates)) {
916
    $default_render_templates = unserialize(CDM_NAME_RENDER_TEMPLATES_DEFAULT);
917
  }
909
  $default_render_templates = unserialize(CDM_NAME_RENDER_TEMPLATES_DEFAULT);
918 910

  
919 911
  $form['taxon_name'][CDM_NAME_RENDER_TEMPLATES] = array(
920 912
      '#type' => 'textarea',

Also available in: Unified diff