You are here

function radioactivity_decay_profile_export in Radioactivity 7.2

Ctools: Prepare a decay profile for expor

File

./radioactivity.module, line 631
Radioactivity core functionality

Code

function radioactivity_decay_profile_export($profile) {
  ctools_include('export');
  $obj = new stdClass();
  foreach ($profile as $key => $val) {
    if (!$val->disabled) {
      $obj->{$key} = $val;
    }
  }
  $output = ctools_export_object('radioactivity_decay_profile', $obj, $indent = '');
  return $output;
}