From c56ee67e29e89f5158801ba7bbe8f574a93215b4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 11 Jun 2001 20:01:13 +0000 Subject: - Changed field_set(), field_get() and field_merge() to use ',' and '=' instead of ';' and ':'. It is considered to be more readable. --> A _first_ step towards and improved index.module. Stay tuned for more. + Important: If you update from CVS - apply the queries in 2.00-to-x.xx.sql! - Changed all 'attribute' to 'attributes'. + Important: If you update from CVS - apply the queries in 2.00-to-x.xx.sql! + Important: This might require to ieni-wieni small update to your custom themes and/or node-related modules: - themes: node_index($node->attribute) -> node_index($node) - node modules: attribute -> attributes --- modules/index.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/index.module') diff --git a/modules/index.module b/modules/index.module index 0d06a7b22..673e00d69 100644 --- a/modules/index.module +++ b/modules/index.module @@ -1,7 +1,7 @@ attributes +// entries => attributess function index_get_array($id) { return db_fetch_array(db_query("SELECT * FROM entry WHERE eid = '". check_input($id) ."'")); @@ -88,8 +88,8 @@ function index_test_2($edit) { $value1 = field_merge($value1, $edit[$entry->collection]); } - foreach (explode(";", $value1) as $data) { - $entry = explode(":", $data); + foreach (explode(",", $value1) as $data) { + $entry = explode("=", $data); if ($entry[1]) $foo[] = "$entry[1]"; } -- cgit v1.2.3