function media_registration_data in D7 Media 6
Parsing function for the registrations to hand back the kinds of modules registering.
Parameters
string $array: Name of the element we want to get data from.
Return value
array
File
- ./media.module, line 379 
- Media API
Code
function media_registration_data($name) {
  $data = array();
  // Get the registered modules.
  $registrations = media_get_registered_modules();
  // Parse the registrations.
  foreach ($registrations as $id => $registration) {
    // Do we have this data in this registration?
    if ($registration[$name]) {
      // Get the item that was requested.
      $data[$registration['module']] = array(
        $id => array(
          $name => $registration[$name],
          'description' => $registration['description'],
        ),
      );
    }
  }
  return $data;
}