Posted by myanmardigitals... on May 22, 2010 at 1:49pm
ဒရူပယ္လ္ တြင္ profile menu ကို ေျပာင္းလဲျခင္းသည္ လြယ္ကူလွသျဖင့္ သင္သည္လည္း ႏွစ္သက္လိမ့္မည္ဟု ေမွ်ာ္လင္႕ပါသည္။
<?php
//ဒရူပယ္လ္ menu ကို ခ်ိတ္ဆက္ မည္ဟုေျပာျခင္း
function သင္၏ေမာ္က်ဴးအမည္_menu_alter(&$items) {
//menu items မ်ားကို ထုတ္လုပ္ၾကည္႕ရႈျခင္း
//drupal_set_message('Menu Items: <pre>'.print_r($items, TRUE).'</pre>');
//user တြင္ရွိေသာ tab menu ကို View Profile အျဖစ္ေျပာင္းလဲျခင္း
$items['user/%user/view']['title'] = "View Profile";
//user တြင္ရွိေသာ edit menu ကို Change Password အျဖစ္ေျပာင္းလဲျခင္း
//$items['user/%user/edit']['title'] = "Change Password";
$items['user/%user_category/edit']['title'] = "Change Password";
}
?>