function field_timer_entity_properties in Field Timer 7
Same name and namespace in other branches
- 7.2 field_timer.module \field_timer_entity_properties()
Loads entity properties which represent a date.
Parameters
string $entity_type: Entity type machine name or empty string.
Return value
array Returns an array of entity's properties which represent a date keyed by entity types if $entity_type is empty, array of properties of given entity type otherwise.
1 call to field_timer_entity_properties()
- field_timer_options_list in ./
field_timer.module - Implements hook_options_list().
File
- ./
field_timer.module, line 422 - Main module file.
Code
function field_timer_entity_properties($entity_type = '') {
$properties = module_invoke_all('field_timer_entity_properties');
drupal_alter('field_timer_entity_properties', $properties);
if (!empty($entity_type)) {
return $properties[$entity_type];
}
return $properties;
}