From Andy Fuchs/Tiptronic

/* Customize a pod including re-ordering */	

$object = pods('test');
$fields = array();

/* collect all fields of the pod into an array */
foreach($object->fields as $field => $data) { 
    $fields[$field] = array('label' => $data['label']); 
}

/* add a WP default field */
$fields['content'] = array('label' => __('content'));
   
/* if you want to exclude a certain field, remove it's name from the array of fields
	unset($fields['field_name']); 
*/
   
$add_fields = $edit_fields = $fields;
   
/* 	fields shown in the AdminUI
pass a simple array to have WP chose the label:
	$manage_fields = array( 'name', 'id','menu_order','created','modified');

or add labels manually: */
   
$manage_fields = array(
    'name'			=> __('Name'),
    'id'  			=> 'ID',
    'menu_order'	=> __('Seq'),
    'created'		=> __('Created'),
    'modified'		=> __('Modified')
);
   

$object->ui = array(
    'reorder' => array(
        'on' => 'menu_order' ,  //menu_order is a built in field; no need to add a field to your pod
        'orderby' => 'menu_order'
        ),
        'fields' => array(
            'reorder' 	=> $reorder_fields,
            'add'  		=> $add_fields,
            'edit' 		=> $edit_fields,
            'manage' 	=> $manage_fields
            )
    );	

pods_ui($object);

 

Questions