You are here

function asset_widget_get_assets_types in Asset 7

Provide static storage for enabled asset types.

1 call to asset_widget_get_assets_types()
asset_widget_pre_render_text_format in modules/asset_widget/asset_widget.module
Text format element pre_render function.

File

modules/asset_widget/asset_widget.module, line 790
Code for the Asset widget module.

Code

function asset_widget_get_assets_types() {
  $assets_types =& drupal_static(__FUNCTION__);
  if (!isset($assets_types)) {
    $types = assets_get_types();
    $assets_types = is_array($types) ? array_keys($types) : array();
  }
  return $assets_types;
}