You are here

function field_extract_list_boolean_extract in Field Extract Values 7

1 string reference to 'field_extract_list_boolean_extract'
field_extract_list_boolean_info in includes/list_boolean.inc
@file field_extract support for list_boolean field

File

includes/list_boolean.inc, line 18
field_extract support for list_boolean field

Code

function field_extract_list_boolean_extract($item, $options = array()) {
  if (isset($item[$options['key']])) {
    return (bool) (int) $item[$options['key']];
  }
}