You are here

function profile2_type_load in Profile 2 7.2

Same name and namespace in other branches
  1. 7 profile2.module \profile2_type_load()

Menu argument loader; Load a profile type by string.

Parameters

$type: The machine-readable name of a profile type to load.

Return value

A profile type array or FALSE if $type does not exist.

2 calls to profile2_type_load()
profile2_page_menu_local_tasks_alter in contrib/profile2_page.module
Implements hook_menu_local_tasks_alter().
profile2_role_access in ./profile2.module
Determines if profile user has current profile available by role.

File

./profile2.module, line 110
Support for configurable user profiles.

Code

function profile2_type_load($type) {
  return profile2_get_types($type);
}