继续Drupal分享精神 QQ群:107748121 站长QQ:2275288328 skype: hellodrupal【drupal交流+drupal 建站+theme制作】
登录 注册

Drupal ubercart api 记录 hook_checkout_pane hook_order

<?php

//简单标记记录,备用。
function hook_checkout_pane(){ // 当checout时候,加载。定义pane
  
$panes[] = array(
   
'id' => 'professional',
   
'callback' => 'hook_checkout_pane_professinal',
   
'title' => t('Register info'),
   
'desc' => t('Register a professinal.'),
   
'weight' => 2,
  );
   return
$panes;
}

function
hook_checkout_pane_professinal($op, &$arg1, $arg2){//返回check相关操作。主要是op。
global $user;

  switch (
$op){
    case
'process':
   
    case
'review':

  }
}

function 
hook_order($op, &$arg1, $arg2) { //主要对order 经常相关操作,
 
switch ($op) {
 
    case
'new':
 
  
      
  }
}
?>

评论

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 自动断行和分段。
  • You can use BBCode tags in the text.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.