You are here

function linkedin_profile_menu in LinkedIn Integration 7

Same name and namespace in other branches
  1. 6 linkedin_profile/linkedin_profile.module \linkedin_profile_menu()

File

linkedin_profile/linkedin_profile.module, line 27

Code

function linkedin_profile_menu() {
  $items = array();
  if (variable_get('linkedin_profile_user_page_enabled', 0) === 1) {

    //LinkedIn profile tab for users
    $items['user/%user/linkedin'] = array(
      'title' => 'Linkedin',
      'type' => MENU_LOCAL_TASK,
      'page callback' => 'linkedin_profile_display',
      'page arguments' => array(
        1,
      ),
      'access callback' => 'linkedin_profile_display_access',
      'access arguments' => array(
        1,
      ),
      'file' => 'linkedin_profile.pages.inc',
    );
  }
  return $items;
}