You are here

function signup_no_views_menu in Signup 6.2

Same name and namespace in other branches
  1. 5.2 includes/views.none.inc \signup_no_views_menu()

Add menu items we only need to define if views is not enabled.

1 call to signup_no_views_menu()
signup_menu in ./signup.module
Implementation of hook_menu().

File

includes/no_views.inc, line 89
Provides all the code for required UI elements for sites that do not have views.module enabled. If views is enabled, there are default views for all of these things (which are therefore customizable and more powerful) in signup/views/views.inc.

Code

function signup_no_views_menu(&$items) {

  // User signup schedule callback
  $items['user/%user/signups'] = array(
    'title' => 'Signups',
    'page callback' => 'signup_user_schedule',
    'page arguments' => array(
      1,
    ),
    'type' => MENU_CALLBACK,
    'access callback' => '_signup_no_views_user_menu_access',
    'access arguments' => array(
      1,
    ),
    'file' => 'includes/no_views.inc',
  );
}