Index: phone.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/phone/phone.module,v
retrieving revision 1.2
diff -u -r1.2 phone.module
--- phone.module	24 Oct 2006 18:26:49 -0000	1.2
+++ phone.module	19 Jan 2007 00:47:22 -0000
@@ -59,22 +59,35 @@
   switch ($op) {
     case 'view':
       foreach ($node_field as $delta => $item) {
-        $node_field[$delta]['view'] = phone_field_view_item($field, $item);
+        $node_field[$delta]['view'] = content_format($field, $item, 'default', $node);
       }
       return theme('field', $node, $field, $node_field, $teaser, $page); 
   }
 }
 
+ /**
+ * Implementation of hook_field_formatter_info()
+ **/
+
+function phone_field_formatter_info() {
+  return array(
+    'default' => array(
+      'label' => 'Default',
+      'field types' => array('ca_phone', 'fr_phone'),
+    ),
+  );
+}
+
 /**
- * Implementation of hook_field_view_item().
- *
- */
-function phone_field_view_item($field, $node_field_item) {
-    $phone =  check_plain($node_field_item['value']);
-    return $phone;
+ * Implementation of hook_field_formatter().
+ **/
+ 
+function phone_field_formatter($field, $item, $formatter, $node) {
+  return check_plain($item['value']);
 }
 
 
+
 /**
  * Implementation of hook_widget_info().
  */
