I am having troubles implementing this hook. I can't see what is wrong, so I think that I probably just don't understand it correctly. Here is what I have:
<?php
function base_order_pane(){
$panes[] = array(
'id' => 'transcript',
'callback' => 'base_request_details',
'title' => t('Details'),
'desc' => t("Return details"),
'weight' => 7,
'show' => array('view', 'edit', 'customer'),
);
}
function
base_request_details($op, $arg1){
switch ($op) {
case 'customer':
case 'view':
$view = tapir_get_table('op_address_base_view_table', $arg1->base['addresses']);
if($arg1->base['instructions'] != ""){
$view .= "<b>".t('Special Instructions: ')."</b>".check_plain($arg1->base['instructions']);
}
return $view;
case
'edit-form':
$form['base'] = array(
'#type' => 'fieldset',
'#title' => t('Base Details'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['base']['test'] = array('#type'=>'textfield', '#title'=>t('Base'),);
return $form;
}
}
?>Both cases 'view' and 'customer' are working correctly. I know that the 'edit-form' case is being called when you go to the edit page because I was putting a drupal_set_message('Test') in there, and it was showing up. What else do I need to do for this to work?
