You are here

function linkit_get_insert_plugin_processed_path in Linkit 7.3

Gets the path processed by the inputfilter choice.

Parameters

LinkitProfile $profile: The Linkit profile to use.

$uri: The uri to act on.

$options: An array of options to the URL function if its used.

Return value

The processed uri.

3 calls to linkit_get_insert_plugin_processed_path()
LinkitSearchPluginEntity::createPath in plugins/linkit_search/entity.class.php
Create an uri for an entity.
LinkitSearchPluginFile::createPath in plugins/linkit_search/file.class.php
Overrides LinkitSearchPluginEntity::createPath().
linkit_autocomplete_absolute_url in ./linkit.module
Retrieve the result object from an absolute URL. Both internal and external paths work.

File

./linkit.module, line 1209
Main file for Linkit module.

Code

function linkit_get_insert_plugin_processed_path(LinkitProfile $profile, $uri, $options = array()) {
  switch ($profile->data['insert_plugin']['url_method']) {
    case LINKIT_URL_METHOD_RAW:
      $path = $uri;
      break;
    case LINKIT_URL_METHOD_RAW_SLASH:
      $options['alias'] = TRUE;
      $path = url($uri, $options);
      break;
    case LINKIT_URL_METHOD_ALIAS:
      $path = url($uri, $options);
      break;
  }
  return $path;
}