From 031e4d420891a4a7b9e3b18623cae4e2400b7691 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 17 May 2001 20:50:15 +0000 Subject: - Tidied up the field_get() API and improved the implementation of both field_set() and field_get(). --- modules/node/node.module | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index e469bbfea..53c32219f 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -11,6 +11,13 @@ class Node { } } +function node_macro($text) { + $src = array("/\[\[(([^\|]*?)(\|([^\|]*?))?)\]\]/e"); // [link|description] + $dst = array(format_tag('\\2', '\\4')); // [link|description] + + return preg_replace($src, $dst, $text); +} + function node_overview($query = array()) { global $user; -- cgit v1.2.3