Index: flvmediaplayer.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/flvmediaplayer/flvmediaplayer.module,v
retrieving revision 1.14.2.52.2.48
diff -u -r1.14.2.52.2.48 flvmediaplayer.module
--- flvmediaplayer.module	22 Apr 2009 16:37:07 -0000	1.14.2.52.2.48
+++ flvmediaplayer.module	22 Apr 2009 16:45:34 -0000
@@ -515,6 +515,39 @@
 
 
 /**
+ * Helper function to build configuration data from a profile with
+ * no node data
+ * @param $profile
+ *   string, profile name
+ * @return array
+ */
+function flvmediaplayer_profile_configuration_values($profile) {
+	$data = array();
+	$config = flvmediaplayer_profile_get_config($display_profile);
+  // loop through all the form data and strip out form prefixes
+  foreach ($config as $name => $value) {
+    // get the params out
+    if (strstr($name, 'param_')) {
+      $data['params'][str_replace('param_', '', $name)] = $value;
+    }
+    // get the flashvars out
+    if (strstr($name, 'flashvar_')) {
+      $data['flashvars'][str_replace('flashvar_', '', $name)] = $value;
+    }
+    // store the rest of the data
+    if (strstr($name, 'flvmp_')) {
+      $data['flvmp'][str_replace('flvmp_', '', $name)] = $value;
+    }
+  }
+  // now add some data back in
+  $data['name'] = $config['flvmp_name'];
+  $data['pid'] = $config['flvmp_pid'];
+
+  return $data;
+}
+
+
+/**
  * This is the main function for loading flvmediaplayer data into
  * from node data. It caches based on nodes, profiles, and urls.
  * @param object $node
