function asset_wizard_formats in Asset 6
Same name and namespace in other branches
- 5.2 asset_wizard.module \asset_wizard_formats()
Step 2: Display a list of available formats for a given asset
1 string reference to 'asset_wizard_formats'
- asset_wizard_menu in ./
asset_wizard.module - Implementation of hook_menu().
File
- ./
asset_wizard.module, line 459 - Wizard-style interface for Asset.
Code
function asset_wizard_formats($asset) {
// at this point we need to check if we should continue ($_GET['return']=='macro')
// or simply return the id
if ($_GET['return'] == 'id') {
return drupal_goto('asset/wizard/' . $asset->aid . '/finish/' . $asset->aid);
}
$content = theme('asset_wizard_formats', $asset, $asset->formatters);
return theme('asset_wizard_page', $content);
}