You are here

function asset_build_query in Asset 5

Same name and namespace in other branches
  1. 6 inc/asset.routines.inc \asset_build_query()

Helper function to build a query string from an array

4 calls to asset_build_query()
asset_asset_type in ./asset.module
Implementation of hook_asset_type().
asset_wizard_form_asset_selection in ./asset_wizard.inc
Form builder for step 1 of the asset wizard. This step is the most intensive so it has been separated out for clarity.
asset_wizard_location_bar in ./asset_wizard.inc
asset_youtube_asset_type in asset_youtube/asset_youtube.module

File

./asset.module, line 790

Code

function asset_build_query($data) {
  foreach ($data as $k => $v) {
    $items[] = "{$k}={$v}";
  }
  return join('&', $items);
}