function path_breadcrumbs_export_form in Path Breadcrumbs 7.2
Same name and namespace in other branches
- 7.3 path_breadcrumbs_ui/path_breadcrumbs_ui.admin.inc \path_breadcrumbs_export_form()
Form for object export.
1 string reference to 'path_breadcrumbs_export_form'
- path_breadcrumbs_ui_menu in path_breadcrumbs_ui/
path_breadcrumbs_ui.module - Implements hook_menu().
File
- path_breadcrumbs_ui/
path_breadcrumbs_ui.admin.inc, line 228 - Administrative callbacks for PATH BREADCRUMBS UI module.
Code
function path_breadcrumbs_export_form($form, $form_state, $path_breadcrumbs) {
drupal_set_title(t('Export path breadcrumb "!name"', array(
'!name' => $path_breadcrumbs->name,
)));
ctools_include('export');
$code = ctools_export_crud_export('path_breadcrumbs', $path_breadcrumbs);
$lines = substr_count($code, "\n");
$form['export'] = array(
'#title' => t('Export data'),
'#type' => 'textarea',
'#value' => $code,
'#rows' => $lines,
'#description' => t('Copy the export text and paste it into import area.'),
);
return $form;
}