Profile edit tabs / section page

As you can see profile edit page have various tabs like Basic settings. You may add custom tab like Bio component have own edit tab on profile edit page.

<?php
function my_component_init(){
		ossn_add_hook('profile', 'edit:section', 'my_component_hook');
		//you also need to register menu item
			ossn_register_menu_item('profile/edit/tabs', array(
				'name' => 'bio',
				'href' => '?section=bio',
				'text' => ossn_print('bio'),
			));		
}
function my_component_hook($hook, $type, $return, $params){
		//$params['section'] contain the section type example 'edit'
		//$params['user'] contains user instance
		if($params['section']  == 'bio'){
			return 'bio section contents';	
		}
}
ossn_register_callback('ossn', 'init', 'my_component_init');