aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metadata.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-08 17:34:21 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-08 17:34:21 +0000
commitfaf7ee8690c1ede38c4bd85c722de8e3012eb584 (patch)
treed0b5264409b1f275015cc693aa52eb71a99baf48 /engine/lib/metadata.php
parent146062199ca57fdf34ff3a7acc603c63b644e290 (diff)
downloadelgg-faf7ee8690c1ede38c4bd85c722de8e3012eb584.tar.gz
elgg-faf7ee8690c1ede38c4bd85c722de8e3012eb584.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* 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
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r--engine/lib/metadata.php22
1 files changed, 1 insertions, 21 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index 65b2a9d40..76c953c85 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -112,27 +112,7 @@
return new ElggMetadata($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_metadata_valuetype($value, $value_type = "")
- {
- if ($value_type!="")
- return $value_type;
-
- // This is crude
- if (is_int($value)) return 'integer';
-
- return 'tag';
- }
+
/**
* Get a specific item of metadata.