Project

General

Profile

« Previous | Next » 

Revision 8e15d0fb

Added by Katja Luther over 5 years ago

ref #7599: create link and render array when description is URL in compose_sequences

View differences:

modules/cdm_dataportal/includes/occurrences.inc
744 744
                    if (is_object($value) || is_array($value)) {
745 745
                        drupal_set_message("Unhandled type in compose_cdm_sequence() for field " . $field, "warning");
746 746
                    } else {
747
//                        if (!is_array($value) && strpos($value, 'http:') !== false ){
748
//                            //make links for urls
749
//                            $value = l($value, $value, array('attributes' => array('target' => '_blank')));
750
//                        }
747
                        if (!is_array($value) && strpos($value, 'http:') !== false ){
748
                            //make links for urls
749
                            $value = l($value, $value, array('attributes' => array('target' => '_blank')));
750
                            $value = markup_to_render_array($value);
751
                        }
752

  
751 753
                       _description_list_group_add($groups, cdm_occurrence_field_name_label($field), $value, NULL, 20);
752 754
                    }
753 755
            }

Also available in: Unified diff