1 menu_example.module _menu_example_menu_page($content = NULL, $arg1 = NULL, $arg2 = NULL)

Page callback for use with most of the menu entries.

The arguments it receives determine what it outputs.

Parameters

string $content: The base content to output.

string $arg1: First additional argument from the path used to access the menu

string $arg2: Second additional argument.

Related topics

File

modules/examples/menu_example/menu_example.module, line 347
Hook implementations for the Menu Example module.

Code

function _menu_example_menu_page($content = NULL, $arg1 = NULL, $arg2 = NULL) {
  $output = '<div>' . $content . '</div>';

  if (!empty($arg1)) {
    $output .= '<div>' . t('Argument 1=%arg', array('%arg' => $arg1)) . '</div>';
  }
  if (!empty($arg2)) {
    $output .= '<div>' . t('Argument 2=%arg', array('%arg' => $arg2)) . '</div>';
  }
  return $output;
}