function _phone_rdf_mapping in Phone 7.2
Helper function to get a RDF mapping for a phone field.
Parameters
string $entity_type: The type of the entity the bundle is for.
string $bundle: The bundle the mapping is for.
string $field_name: The name of the field we are creating the mapping for.
Return value
array A RDF mapping array.
2 calls to _phone_rdf_mapping()
- phone_field_create_instance in ./
phone.module - Implements hook_field_create_instance().
- phone_rdf_mapping in ./
phone.module - Implements hook_rdf_mapping().
File
- ./
phone.module, line 1096 - The phone module lets administrators use a phone number field type.
Code
function _phone_rdf_mapping($entity_type, $bundle, $field_name) {
return array(
'type' => $entity_type,
'bundle' => $bundle,
'mapping' => array(
$field_name => array(
'predicates' => array(
'foaf:phone',
),
'type' => 'rel',
),
),
);
}