function scald_type_get_names in Scald: Media Management made easy 7
Returns a list of available atom type names.
Return value
array An array of atom type names, keyed by the type machine name.
1 string reference to 'scald_type_get_names'
- scald_entity_property_info in ./
scald.module - Implements hook_entity_property_info().
File
- ./
scald.module, line 66 - The Scald Core, which handles all Scald Registries and dispatch.
Code
function scald_type_get_names() {
$types = scald_types();
$options = array();
foreach ($types as $name => $type) {
$options[$name] = $type->title;
}
return $options;
}