You are here

function asset_directory_icon in Asset 5.2

Same name and namespace in other branches
  1. 6 asset.types.inc \asset_directory_icon()

Implementation of hook_asset_type('icon') for directory asset type

Related topics

File

./asset.types.inc, line 275
This file is included by asset_asset_type() and includes all the file and directory specific functions

Code

function asset_directory_icon($asset) {
  $icon = drupal_get_path('module', 'asset') . '/icons/folder.png';
  if (file_exists($icon)) {
    return $icon;
  }
}