Mercurial > hg > drupalISMI
view openmindattribute/link.diff.inc @ 48:6625019a0c96
old model2neo4j renamed to model2neo4j_restclient. new model2neo4j_client and model2neo4j_import. fixed ismixml2model and compare_models.
author | casties |
---|---|
date | Tue, 07 Feb 2017 21:06:13 +0100 |
parents | 124ef8f3b22d |
children |
line wrap: on
line source
<?php /** * @file * Provide diff field functions for the Link module. */ /** * Diff field callback for parsing link fields comparative values. */ function link_field_diff_view($items, $context) { $diff_items = array(); foreach ($items as $delta => $item) { if ($item['url'] && $item['title']) { $diff_items[$delta] = $item['title'] . ' (' . $item['url'] . ')'; } else { $diff_items[$delta] = $item['title'] . $item['url']; } } return $diff_items; }