You are here

function flashnode_get_params in Flash Node 6.3

Same name and namespace in other branches
  1. 6.2 flashnode.module \flashnode_get_params()

Convert a string in the form parameter=value in to an array

1 call to flashnode_get_params()
theme_flashnode_markup in ./flashnode.module
Generate HTML mark for flash content, using SWF Tools if it is available

File

./flashnode.module, line 1221

Code

function flashnode_get_params($parameters_string) {

  // parse query string into associative array
  $params = array();
  if ($parameters_string != '') {
    foreach (explode(' ', $parameters_string) as $kvpair) {
      list($key, $value) = explode('=', $kvpair);
      $params[$key] = $value;
    }
  }
  return $params;
}