You are here

function user_relationship_views_menu in User Relationships 6

Same name and namespace in other branches
  1. 7 user_relationship_views/user_relationship_views.module \user_relationship_views_menu()

Implementation of hook_menu().

File

user_relationship_views/user_relationship_views.module, line 22
User Relationships Views integration. @author Alex Karshakevich http://drupal.org/user/183217

Code

function user_relationship_views_menu() {

  // Path is not admin/build/views due to menu complications with the wildcards from
  // the generic ajax callback.
  $items['admin/views/ajax/autocomplete/user_relationships_type'] = array(
    'page callback' => 'user_relationship_views_ajax_autocomplete_relationships_type',
    'access callback' => 'user_access',
    'access arguments' => array(
      'view user relationships',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}