You are here

function workbench_workflows_export_ui_base_plugin in Workbench Moderation 7.2

Parameters

string $type: Allowed values are 'state', 'event', and 'workflow'

Return value

array

3 calls to workbench_workflows_export_ui_base_plugin()
workbench_events.inc in modules/workbench_workflows/plugins/export_ui/workbench_events.inc
workbench_states.inc in modules/workbench_workflows/plugins/export_ui/workbench_states.inc
workbench_workflows.inc in modules/workbench_workflows/plugins/export_ui/workbench_workflows.inc

File

modules/workbench_workflows/workbench_workflows.admin.inc, line 14
Administrative functions for workbench_workflows.

Code

function workbench_workflows_export_ui_base_plugin($type) {
  $plural = $type . 's';
  $plugin = array(
    "schema" => "workbench_workflows_{$plural}",
    "access" => "administer_workbench_workflows",
    "menu" => array(
      "menu prefix" => "admin/config/workflow/workbench-workflows",
      "menu item" => $plural,
      "menu title" => "Workbench " . $plural,
      "menu description" => "Add, edit or delete Workbench " . drupal_ucfirst($plural),
    ),
    "title singular" => t("workbench {$type}"),
    "title singular proper" => t("Workbench " . drupal_ucfirst($type)),
    "title plural" => t("workbench {$type}"),
    "title plural proper" => t("Workbench " . drupal_ucfirst($plural)),
    "handler" => "workbench_" . $plural . "_ui",
    "use wizard" => TRUE,
    "form info" => array(
      "order" => array(
        "basic" => t("Basic information"),
        "context" => t("Contexts"),
        "access" => t("Access"),
      ),
    ),
  );
  return $plugin;
}