You are here

function asset_pathinfo in Asset 5

Same name and namespace in other branches
  1. 6 inc/asset.routines.inc \asset_pathinfo()

wrapper around pathinfo() that strips file_directory_path from path and . from dirname

1 call to asset_pathinfo()
asset_wizard_location_bar in ./asset_wizard.inc

File

./asset.module, line 801

Code

function asset_pathinfo($path) {
  $path = trim(str_replace(file_directory_path(), '', $path), '/');
  $info = pathinfo($path);
  if ($info['dirname'] == '.') {
    $info['dirname'] = '';
  }
  return $info;
}