You are here

function purl_purl_processor in Persistent URL 6

Same name and namespace in other branches
  1. 7 purl.module \purl_purl_processor()

Implementation of hook_purl_processor().

File

./purl.module, line 966

Code

function purl_purl_processor() {
  $info = array();
  $info['processor'] = array(
    'handler' => array(
      'class' => 'purl_processor',
      'file' => 'purl_processor.inc',
      'path' => drupal_get_path('module', 'purl') . '/includes',
    ),
  );
  $info['path'] = array(
    'title' => t('Path'),
    'handler' => array(
      'class' => 'purl_path',
      'file' => 'purl_path.inc',
      'path' => drupal_get_path('module', 'purl') . '/includes',
      'parent' => 'processor',
    ),
  );
  $info['pair'] = array(
    'title' => t('Path pair'),
    'null_id' => true,
    // Don't attempt to user distinct ids with this processor
    'handler' => array(
      'class' => 'purl_pair',
      'file' => 'purl_pair.inc',
      'path' => drupal_get_path('module', 'purl') . '/includes',
      'parent' => 'path',
    ),
  );
  $info['subdomain'] = array(
    'title' => t('Subdomain'),
    'handler' => array(
      'class' => 'purl_subdomain',
      'file' => 'purl_subdomain.inc',
      'path' => drupal_get_path('module', 'purl') . '/includes',
      'parent' => 'processor',
    ),
  );
  $info['domain'] = array(
    'title' => t('Domain'),
    'handler' => array(
      'class' => 'purl_domain',
      'file' => 'purl_domain.inc',
      'path' => drupal_get_path('module', 'purl') . '/includes',
      'parent' => 'processor',
    ),
  );
  $info['extension'] = array(
    'title' => t('File extension'),
    'handler' => array(
      'class' => 'purl_extension',
      'file' => 'purl_extension.inc',
      'path' => drupal_get_path('module', 'purl') . '/includes',
      'parent' => 'processor',
    ),
  );
  $info['useragent'] = array(
    'title' => t('User agent'),
    'handler' => array(
      'class' => 'purl_useragent',
      'file' => 'purl_useragent.inc',
      'path' => drupal_get_path('module', 'purl') . '/includes',
      'parent' => 'processor',
    ),
  );
  $info['querystring'] = array(
    'title' => t('Query string'),
    'null_id' => true,
    // Don't attempt to user distinct ids with this processor
    'handler' => array(
      'class' => 'purl_querystring',
      'file' => 'purl_querystring.inc',
      'path' => drupal_get_path('module', 'purl') . '/includes',
      'parent' => 'processor',
    ),
  );
  return $info;
}