You are here

function asset_build_macro in Asset 5

Same name and namespace in other branches
  1. 5.2 asset.module \asset_build_macro()
  2. 6 asset.module \asset_build_macro()

Build a macro from the specified attributes.

1 call to asset_build_macro()
asset_wizard_form in ./asset_wizard.inc
Main form builder function for the asset wizard.

File

./asset.module, line 486

Code

function asset_build_macro($attr = array()) {
  $macro = '[asset';
  foreach ($attr as $k => $v) {
    $macro .= '|' . $k . '=' . $v;
  }
  $macro .= ']';
  return $macro;
}