Page Argument in Title How can I have the page argument appear in the page title?

    $items['path/path/%'] = array(
    'title'            =&gt; t('Dynamic Title %1'),
    'page callback'    =&gt; 'pagecallback',
    'page arguments' =&gt; array(2),
     'type'             =&gt; MENU_CALLBACK,
    'access arguments' =&gt; array('access content'),
  );


Is there some kind of text replacement or something you can use in there, or is what I'm asking impossible?
You can use a title callback function along with title arguments:

$items['path/path/%'] = array(
  'title callback' =&gt; 'MYMODULE_page_title',
  'title arguments' =&gt; array(2),
  'page callback'    =&gt; 'pagecallback',
  'page arguments' =&gt; array(2),
  'type'             =&gt; MENU_CALLBACK,
  'access arguments' =&gt; array('access content'),
);

function MYMODULE_page_title($arg) {
  return t('Arg is: @arg', array('@arg' =&gt; $arg));
}


The default title callback is t(), so if you just need the argument to be passed straight through as the title you can get away with just using title arguments.

See hook_menu() for more details.