function asset_wizard_location_bar in Asset 6
Same name in this branch
- 6 asset_wizard.inc \asset_wizard_location_bar()
- 6 inc/asset_wizard.inc \asset_wizard_location_bar()
Same name and namespace in other branches
- 5 asset_wizard.inc \asset_wizard_location_bar()
File
- inc/
asset_wizard.inc, line 942
Code
function asset_wizard_location_bar($dir = '') {
global $user;
$defaults = array_unique(array(
$dir,
'PUBLIC',
$user->name,
));
$qstr = $_GET;
unset($qstr['q']);
foreach ($defaults as $path) {
$info = asset_pathinfo($path);
$asset = asset_load(array(
'dirname' => $info['dirname'],
'filename' => $info['filename'],
));
$qstr['dir'] = $asset->filepath;
$links[] = l($asset->title, $_GET['q'], array(
'query' => asset_build_query($query),
));
}
return theme('item_list', $links);
}