From 6e64d54a0ed468ac8385cc26a7d3f3aa0f65ec96 Mon Sep 17 00:00:00 2001 From: PatchRanger Date: Tue, 20 Aug 2013 00:19:41 +0700 Subject: [PATCH] Issue #1992300 by Staniel25, mxwitkowski, PatchRanger: Phone Extension field not being saved --- phone.info | 1 + phone.module | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/phone.info b/phone.info index e4994f2..5f7f3e7 100644 --- a/phone.info +++ b/phone.info @@ -3,6 +3,7 @@ description = The phone module lets administrators use a phone number field type package = Fields dependencies[] = field dependencies[] = libraries (>=2.x) +dependencies[] = rdf files[] = phone.migrate.inc files[] = phone.content_migrate.inc core = 7.x diff --git a/phone.module b/phone.module index 4a0dfbc..c0c6d8e 100644 --- a/phone.module +++ b/phone.module @@ -1112,7 +1112,7 @@ function _phone_rdf_mapping($entity_type, $bundle, $field_name) { function phone_field_create_instance($instance) { $field_name = $instance['field_name']; $field = field_info_field($field_name); - if ($field['type'] == 'phone' && module_exists('rdf')) { + if ($field['type'] == 'phone') { $mapping = rdf_mapping_load($instance['entity_type'], $instance['bundle']); if (!isset($mapping[$field_name])) { @@ -1135,7 +1135,7 @@ function phone_field_create_instance($instance) { function phone_field_delete_instance($instance) { $field_name = $instance['field_name']; $field = field_info_field($field_name); - if ($field['type'] == 'phone' && module_exists('rdf')) { + if ($field['type'] == 'phone') { $mapping = rdf_mapping_load($instance['entity_type'], $instance['bundle']); unset($mapping[$field_name]); @@ -1160,7 +1160,7 @@ function phone_field_delete_instance($instance) { * so we have all the information. */ function phone_process_field(&$variables) { - if ($variables['element']['#field_type'] == 'phone' && module_exists('rdf')) { + if ($variables['element']['#field_type'] == 'phone') { $element = $variables['element']; $field_name = $element['#field_name']; -- 1.7.9.5