function profile2_regpath_regpath_load in Profile2 Registration Path 7
Same name and namespace in other branches
- 7.2 profile2_regpath.module \profile2_regpath_regpath_load()
Implements 'load' callback for regpath exportables.
2 calls to profile2_regpath_regpath_load()
- profile2_regpath_regpath_save in ./
profile2_regpath.module - Save a single regpath.
- _profile2_regpath_form_profile2_type_form_alter in ./
profile2_regpath.admin.inc - Implements hook_form_FORM_ID_alter().
File
- ./
profile2_regpath.module, line 245 - Attach profile2 form to registration form according to path.
Code
function profile2_regpath_regpath_load($profile_type) {
// Prevent "Call to undefined function ctools_include()" error while going to profile manage page
module_load_include('module', 'ctools', 'ctools');
ctools_include('export');
$result = ctools_export_load_object('profile2_regpath', 'names', array(
$profile_type,
));
if (isset($result[$profile_type])) {
return $result[$profile_type];
}
}