function phone_rdf_mapping in Phone 7.2
Implements hook_rdf_mapping().
File
- ./
phone.module, line 1065 - The phone module lets administrators use a phone number field type.
Code
function phone_rdf_mapping() {
$mapping = array();
$fields = field_info_fields();
foreach (array_keys($fields) as $field_name) {
$field = $fields[$field_name];
if ($field['type'] == 'phone') {
foreach ($field['bundles'] as $entity_type => $bundles) {
foreach ($bundles as $bundle) {
$mapping[] = _phone_rdf_mapping($entity_type, $bundle, $field_name);
}
}
}
}
return $mapping;
}