function asset_build_macro in Asset 6
Same name and namespace in other branches
- 5.2 asset.module \asset_build_macro()
- 5 asset.module \asset_build_macro()
Build a macro from the specified attributes.
4 calls to asset_build_macro()
- asset_wizard_form in ./
asset_wizard.inc - Main form builder function for the asset wizard.
- asset_wizard_form in inc/
asset_wizard.inc - Main form builder function for the asset wizard.
- asset_wizard_format_options_form in ./
asset_wizard.module - Form Builder for Step 3
- asset_wizard_format_options_form_submit in ./
asset_wizard.module - Sumbit handler for Step 3
File
- ./
asset.module, line 255
Code
function asset_build_macro($attr = array()) {
$macro = '[asset';
if (!empty($attr)) {
foreach ($attr as $k => $v) {
$macro .= '|' . $k . '=' . $v;
}
}
$macro .= ']';
return $macro;
}