1 contextual_links_example.module contextual_links_example_object_page($object)

Menu callback; displays an object defined by this module on its own page.

See also


Related topics


modules/examples/contextual_links_example/contextual_links_example.module, line 306
Hooks implementations for the Contextual Links Example module.


function contextual_links_example_object_page($object) {
  // Here we render the object but without the #contextual_links property,
  // since we don't want contextual links to appear when the object is already
  // being displayed on its own page.
  $build = array(
    '#theme' => 'contextual_links_example_object',
    '#object' => $object,

  return $build;