You are here

function opening_hours_node_edit_page in Opening hours 7

Same name and namespace in other branches
  1. 6 includes/opening_hours.pages.inc \opening_hours_node_edit_page()

Page for editing the opening hours for a specific node.

1 string reference to 'opening_hours_node_edit_page'
opening_hours_menu in ./opening_hours.module
Implements hook_menu().

File

includes/opening_hours.pages.inc, line 11
Page callbacks for the opening hours module.

Code

function opening_hours_node_edit_page($node) {
  drupal_set_title(t('Opening hours for @title', array(
    '@title' => $node->title,
  )));
  $page = array();
  $page['#attached'] = opening_hours_js_attach_admin($node->nid);

  // No arguments to this theme function.
  $page[] = array(
    '#theme' => 'opening_hours_admin',
  );
  return $page;
}