You are here

function services_client_ui::add_plugin_page in Services Client 7.2

Page callback; Add new plugin.

File

plugins/export_ui/services_client_ui.class.php, line 17

Class

services_client_ui

Code

function add_plugin_page($js, $input, $item, $type) {
  drupal_set_title($this
    ->get_page_title('add_plugin', $item));
  $event = $this
    ->get_event_handler($item, TRUE);
  if ($type == 'mapping') {
    $uuid = $event
      ->addPlugin('mapping', 'ServicesClientMappingPlugin');
    $event
      ->setObjectCache();
    drupal_goto($event
      ->getUrl('plugin/mapping/' . $uuid . '/edit'));
  }
  return drupal_get_form('services_client_plugin_add', $event, $type);
}