function profile2_regpath_block_info in Profile2 Registration Path 7.2
Implements hook_block_info().
File
- profile2_regpath_blocks/
profile2_regpath_blocks.module, line 11 - Create unique registration blocks per Profile2 profile type.
Code
function profile2_regpath_block_info() {
// Create a user registration block for each profile2 profile type.
if ($profile2_entity = entity_get_info('profile2')) {
foreach (profile2_get_types() as $type_name => $profile_type) {
$blocks['p2rp_register_' . $profile_type->id] = array(
'info' => t('User Register - @label', array(
'@label' => $profile_type->label,
)),
);
}
}
return $blocks;
}