You are here

function local_taxonomy_service_info in Taxonomy import/export via XML 7

hook_taxonomy_service_info()

File

services/local.taxonomy_service.inc, line 12
declare how to import a taxonomy from local sources.

Code

function local_taxonomy_service_info() {
  $services = array();
  $services['local'] = array(
    'provider' => 'Server filesystem',
    'name' => 'Local files',
    'id' => 'local',
    'description' => '
      Choose from available files stored on the server.
    ',
    // Define the name of the form function that returns service-specific UI
    'import_form_callback' => 'local_taxonomy_service_form',
  );
  return $services;
}