[support] question about hook_menu
Earnie Boyd
earnie at users.sourceforge.net
Thu Jun 3 11:53:26 UTC 2010
Larry Garfield wrote:
> If arg() is your answer, you're asking the wrong question. :-)
>
> As an experiment, Tim, can you try using a page callback that doesn't go
> through drupal_get_form? It does some weird stuff, so you should eliminate
> that as a potential source of trouble.
>
> I think what you're trying to do should work, which is why I recommend
> eliminating some variables.
>
I actually thought arg was the correct answer here as well. Not using
drupal_get_form may well be what is needed but arg() would still need to
be used to get the pieces.
$args = arg();
array_shift($args);
$ftp_path = implode('/', $args);
--
Earnie
-- http://progw.com
-- http://www.for-my-kids.com
More information about the support
mailing list