In Drupal 7, from within a module,
My goal is having a menu path (e.g. "
/path/to/page/%/%/view/%") and an array of arguments (e.g.
array('foo1', 'foo2', 'foo3')), be able to build the resulting path (e.g. "
After looking all over in the Drupal API, I cannot find a function that would do that.
Does such function exist?
The placeholders can be different as well. e.g. "
/path/to/page/%user/%blah/view/%". The original raw path is dynamic and is only known during runtime.
I thought that
format_string may work for
%blah, but what about the
% in the end, does
format_string work to replace that one too?