You are here

function ctools_string_path_placeholder in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 plugins/arguments/string.inc \ctools_string_path_placeholder()

Switch the placeholder based upon user settings.

1 string reference to 'ctools_string_path_placeholder'
string.inc in plugins/arguments/string.inc
Plugin to provide an argument handler for a raw string

File

plugins/arguments/string.inc, line 56
Plugin to provide an argument handler for a raw string

Code

function ctools_string_path_placeholder($argument) {
  if (empty($argument['settings']['use_tail'])) {
    return '%pm_arg';
  }
  else {
    return '%pm_arg_tail';
  }
}