function asset_build_macro in Asset 5.2
Same name and namespace in other branches
- 5 asset.module \asset_build_macro()
- 6 asset.module \asset_build_macro()
Build a macro from the specified attributes.
Related topics
2 calls to asset_build_macro()
- 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 1144 - Main module.
Code
function asset_build_macro($attr = array()) {
$macro = '[asset';
foreach ($attr as $k => $v) {
$macro .= '|' . $k . '=' . $v;
}
$macro .= ']';
return $macro;
}