function path_breadcrumbs_clone_breadcrumb in Path Breadcrumbs 7.3
Same name and namespace in other branches
- 7.2 path_breadcrumbs_ui/path_breadcrumbs_ui.admin.inc \path_breadcrumbs_clone_breadcrumb()
Form for path breadcrumbs clone.
1 string reference to 'path_breadcrumbs_clone_breadcrumb'
- 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 340 - Administrative callbacks for PATH BREADCRUMBS UI module.
Code
function path_breadcrumbs_clone_breadcrumb($path_breadcrumb) {
$path_breadcrumb->clone_from = $path_breadcrumb->machine_name;
$path_breadcrumb->machine_name .= '_clone';
$path_breadcrumb->export_type = NULL;
unset($path_breadcrumb->path_id);
path_breadcrumbs_object_cache_set($path_breadcrumb->machine_name, $path_breadcrumb);
$form_state = array(
'storage' => array(
'machine_name' => $path_breadcrumb->machine_name,
),
);
return drupal_build_form('path_breadcrumbs_ui_add_form', $form_state);
}