function profile2_regpath_get_reg_paths in Profile2 Registration Path 7.2
Returns object containing all p2rp registration paths.
Return value
array An array containing all active registration paths & path types.
1 call to profile2_regpath_get_reg_paths()
- profile2_regpath_menu in ./
profile2_regpath.module - Implements hook_menu().
File
- ./
profile2_regpath.module, line 260 - Attach profile2 form to registration form according to path.
Code
function profile2_regpath_get_reg_paths() {
$reg_paths = NULL;
// Get data object of all registration paths.
$query = db_select('profile2_regpath', 'pr');
$query
->fields('pr', array(
'path',
'misc',
));
$query
->groupBy('path');
$query
->groupBy('misc');
$query
->condition('pr.status', 1);
$result = $query
->execute();
$reg_paths = $result
->fetchAll();
return $reg_paths;
}