You are here

function theme_signaturefield_display in SignatureField 7.2

Same name and namespace in other branches
  1. 6 modules/system.inc \theme_signaturefield_display()
  2. 7 includes/system.inc \theme_signaturefield_display()

@todo Please document this function.

See also

http://drupal.org/node/1354

2 theme calls to theme_signaturefield_display()
signaturefield_field_formatter_view in includes/field.inc
Implements hook_field_formatter_view().
_webform_display_signaturefield in includes/webform.inc
Display the result of a submission for a component.

File

includes/system.inc, line 117
System module integration.

Code

function theme_signaturefield_display($vars) {
  $values = unserialize(is_array($vars) && !empty($vars['data']) ? $vars['data'] : $vars);
  return theme('image', array(
    'path' => $values['filepath'],
  ));
}