function webform_menu_to_arg in Webform 7.4
Menu LOADERNAME_to_arg callback.
Determines the arguments used to generate a menu link.
This is implemented only to give the webform_localization modules an opportunity to link to the orignial webform from the localized one. See issue 2097277.
Parameters
string $arg: The argument supplied by the caller.
array $map: Array of path fragments (for example, array('node','123','edit') for 'node/123/edit').
int $index: Which element of $map corresponds to $arg.
Return value
string The $arg, modified as desired.
File
- ./
webform.module, line 476 - This module provides a simple way to create forms and questionnaires.
Code
function webform_menu_to_arg($arg, array $map, $index) {
return function_exists('webform_localization_webform_menu_to_arg') ? webform_localization_webform_menu_to_arg($arg, $map, $index) : $arg;
}