function profile2_regpath_regpath_load in Profile2 Registration Path 7.2
Same name and namespace in other branches
- 7 profile2_regpath.module \profile2_regpath_regpath_load()
Implements 'load' callback for regpath exportables.
1 call to profile2_regpath_regpath_load()
- profile2_regpath_regpath_save in ./
profile2_regpath.module - Save a single regpath.
File
- ./
profile2_regpath.module, line 291 - 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];
}
}