function ctools_export_ui_plugin_menu_path

Get the path to a specific menu item from a plugin.

Parameters

$plugin: The plugin name.

$item_id: The id in the menu items from the plugin.

$export_key: The export key of the item being edited, if it exists.

Return value

The menu path to the plugin's list.

3 calls to ctools_export_ui_plugin_menu_path()
ctools_export_ui::build_operations in plugins/export_ui/ctools_export_ui.class.php
Builds the operation links for a specific exportable item.
ctools_export_ui::get_wizard_info in plugins/export_ui/ctools_export_ui.class.php
Get the form info for the wizard.
ctools_export_ui_edit_item_form_delete in plugins/export_ui/ctools_export_ui.class.php
Submit handler to delete for ctools_export_ui_edit_item_form

File

includes/export-ui.inc, line 419

Code

function ctools_export_ui_plugin_menu_path($plugin, $item_id, $export_key = NULL) {
    $path = $plugin['menu']['items'][$item_id]['path'];
    if ($export_key) {
        $path = str_replace('%ctools_export_ui', $export_key, $path);
    }
    return ctools_export_ui_plugin_base_path($plugin) . '/' . $path;
}