From faf7ee8690c1ede38c4bd85c722de8e3012eb584 Mon Sep 17 00:00:00 2001 From: icewing Date: Tue, 8 Apr 2008 17:34:21 +0000 Subject: Marcus Povey * Simplified extender types, now only supports integer and text - types deamed not to be necessary (yet), also simplifies import and export. * Types better detected. git-svn-id: https://code.elgg.org/elgg/trunk@424 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/annotations.php | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'engine/lib/annotations.php') diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php index c71d235f8..68c9bfc22 100644 --- a/engine/lib/annotations.php +++ b/engine/lib/annotations.php @@ -116,27 +116,6 @@ return new ElggAnnotation($row); } - /** - * Detect the value_type for a given value. - * Currently this is very crude. - * - * TODO: Make better! - * - * @param mixed $value - * @param string $value_type If specified, overrides the detection. - * @return string - */ - function detect_annotation_valuetype($value, $value_type = "") - { - if ($value_type!="") - return $value_type; - - // This is crude - if (is_int($value)) return 'integer'; - - return 'tag'; - } - /** * Get a specific annotation. * -- cgit v1.2.3