ဒရူပယ္လ္ တြင္ menu item ကို တည္ေဆာက္ျခင္း

Events happening in the community are now at Drupal community events on www.drupal.org.
myanmardigitalsolutions's picture

ဒရူပယ္လ္ တြင္ menu item ကို တည္ေဆာက္ျခင္း

menu item ကို တည္ေဆာက္ရာတြင္ ရုိးရွင္းလြယ္ကူလွေသာ ဒရူပယ္လ္ ၏စနစ္ပံုစံမ်ားသည္ အသံုးျပဳသူမ်ားကို အဆင္ေျပေခ်ာေမြ႕ေအာင္ ဖန္းတီးေပးသည္။ ထိုသို႕ဖန္းတီးရာတြင္ အေရးႀကီးေသာ လုပ္ေဆာင္ခ်က္မ်ား၏ တာဝန္ႏွင္႕ ဖန္ရွင္တို႕အေပၚမႈတည္ၿပီး ကဲြျပားျခားနားသည္ကို ေတြ႕ရိွႏုိင္သည္။

<?php
//menu item ကို ဖန္တီးတည္ေဆာက္ျခင္း
function သင္၏ေမာ္က်ဴးအမည္_menu() {

//သင္၏ item ကို array() တြင္ထည္႕ျခင္း
 
$items = array();

//item ကိုarray() တည္ေဆာက္သည္ အဆင္႕
 
$items['user/%user/setup'] = array(
//title ကိုေရးသားၿခင္း
   
'title' => 'Edit Profile',
//page ကိုေခၚယူျခင္း
   
'page callback' => 'six_profile_form',
//ေဖာင္ကို အမည္ေပးျခင္း
   
'name' => 'six_profile_form',
//ေဖာင္ကို id ေပးျခင္း
   
'id' => 'six_profile_form',  
//page ၏ arg()
   
'page arguments' => array(1),
//item ၏ အေလးခ်ိန္
   
'weight'=> -1,
//အသံုးျပဳမႈကို ေခၚယူျခင္း
   
'access callback' => 'user_access',
//အသံုးျပဳမႈ arg ၏ တပ္ဆင္မႈမ်ား
   
'access arguments' => array('Setup'),
//အသံုးျပဳေသာ Menu item ၏လုပ္ေဆာင္ခ်က္ ပံုစံ
   
'type' => MENU_LOCAL_TASK,
  );
 
//ျပန္လည္ထုတ္ျပခ်က္
 
return $items;
}
?>

Myanmar

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: