Project

General

Profile

Revision 8e15d0fb

ID8e15d0fb92886a777fc7c99b5ba9436c1afa5747
Parent 58c1a035
Child 7e1f5d18

Added by Katja Luther about 2 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

Add picture from clipboard (Maximum size: 40 MB)