Skip to content

Instantly share code, notes, and snippets.

@sc0ttkclark
Created September 4, 2013 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sc0ttkclark/6443734 to your computer and use it in GitHub Desktop.
Save sc0ttkclark/6443734 to your computer and use it in GitHub Desktop.
Example custom display
<?php
$ui[ 'fields' ][ 'manage' ][ 'my_custom_field' ] = array(
'label' => 'My Custom Field',
'custom_display' => 'my_custom_field_pods_value'
);
function my_custom_field_pods_value( $row, $obj, $value, $field, $attributes ) {
$value = $row[ 'a_number_field' ] + $row[ 'another_number_field' ];
return $value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment