coords = $coordinates_str; $tag->type = $relationships_type; $tag->value = $value; $access_id = $image->getAccessID(); $owner_id = get_loggedin_userid(); //Save annotation if ($image->annotate('phototag', serialize($tag), $access_id, $owner_id)) { system_message(elgg_echo("image:tagged")); } forward($_SERVER['HTTP_REFERER']); ?>