You are here

function relation_relation_type_export in Relation 7

Exports a relation type.

1 call to relation_relation_type_export()
relation_export_relation_type in ./relation.ctools.inc
Page callback for ctools exports.
1 string reference to 'relation_relation_type_export'
relation_schema in ./relation.install
Implements hook_schema().

File

./relation.ctools.inc, line 34
ctools import and export for Relation module.

Code

function relation_relation_type_export($relation_type, $indent = '') {
  ctools_include('export');
  $additional2 = array(
    'source_bundles' => $relation_type->source_bundles,
    'target_bundles' => $relation_type->target_bundles,
  );
  $output = ctools_export_object('relation_type', $relation_type, $indent, NULL, array(), $additional2);
  return $output;
}