All pastes #593787 Raw Edit

civicrm custom user screen

public php v1 · immutable
#593787 ·published 2007-06-28 15:27 UTC
rendered paste body
    if ($may_cache || substr($_GET['q'], 0, 20) ==  'civicrm/contact/view') {  	civicrm_initialize(TRUE);  	require_once 'CRM/Core/Menu.php';  		//	print_r(CRM_Core_Menu::$items);	global $items ;	$items[] = array(  			 'path'     =>  'civicrm/contact/view/interests',  			 'query'    =>  'reset=1&cid=%%cid%%',  			 'qs'       =>  'reset=1&cid=%%cid%%',   // old?			 'title'    =>  t('Interests'),  			 'type'     =>  CRM_Core_Menu::CALLBACK,  			 'crmType'  =>  CRM_Core_Menu::LOCAL_TASK,			 'callback' =>  'interests',  			 'weight'   =>  6,  			 );  	CRM_Core_Menu::add($items[count($items)-1]);        }