You are here

function purge_get_bundle_ui in Purge 7.2

Load the api bundle from the variable.

Return value

$bundle

3 calls to purge_get_bundle_ui()
purge_configuration_form in includes/purge_ui.inc
Menu callback for purge admin settings.
purge_item_add_form in includes/purge_ui.inc
Menu callback for the add item form.
purge_item_form in includes/purge_ui.inc
Menu callback for the purge item edit form.

File

includes/purge_ui.inc, line 17
Provides administrative interface for the Purge module.

Code

function purge_get_bundle_ui($form, $form_state, $action = 'view', $item_type = NULL, $item_name = NULL) {
  $data = variable_get('purge_config');

  // Load the UI bundle from the API bundle data.
  $data = str_replace('O:20:"PurgePurgerBundleAPI"', 'O:19:"PurgePurgerBundleUI"', $data);
  $bundle = unserialize($data);
  $bundle
    ->set_form_item($action, $item_type, $item_name);
  return $bundle;
}