You are here

function asset_get_types in Asset 5.2

Builds a list of available asset types, and returns all of part of this list in the specified format.

Related topics

10 calls to asset_get_types()
asset_access in ./asset.module
One-stop asset access control
asset_add in ./asset.module
Present an asset submission form or a set of links to such forms.
asset_admin_overview in ./asset.module
Menu Callback for admin/settings/asset
asset_field_settings in modules/asset_content.inc
Implementation of hook_field_settings().
asset_forms in ./asset.module
Implementation of hook_forms(). All asset forms share the same form handler

... See full list

File

./asset.module, line 754
Main module.

Code

function asset_get_types() {
  $types = array();
  $info_array = module_invoke_all('asset_type', 'info');
  foreach ($info_array as $type => $info) {
    $info['type'] = $type;
    $types[$type] = (object) $info;
  }
  return $types;
}