Custom Field type was empty in views Im build a module, and this module was add a new field type, and all its good, but when i try to use this field in view, its print empty.. no value.., but when I use delta field, its retrieve value ..

look here: 


how i can integrate field value with view ..?

this code I used for create field ..

// Install New type of field module.install
function custom_anees_location_field_schema($field) {
  $schema = array();
  $schema['columns']['option'] = array(
      'type' =&gt; 'varchar',
      'length' =&gt; 25,
      'not null' =&gt; FALSE
  );
  return $schema;
}
 // mymodule.module
function custom_anees_location_field_info() {
  return array(
    'country_list_location' =&gt; array(
      'label' =&gt; t('Country Location'),
      'description' =&gt; t('Field For spesfic Location content'),
      'settings' =&gt; array('max_length' =&gt; 255),
      'instance_settings' =&gt; array(
        'text_processing' =&gt; 0,
      ),
      'default_widget' =&gt; 'options_select',
      'default_formatter' =&gt; 'states_field_options',
    ),
  );
}

function custom_anees_location_field_widget_info_alter(&amp;$info) {
  $widgets = array(
    'options_select' =&gt; array('country_list_location'),
  );
  foreach ($widgets as $widget =&gt; $field_types) {
    $info[$widget]['field types'] = array_merge($info[$widget]['field types'], $field_types);
  }
}

function custom_anees_location_element_validate($element, &amp;$form_state) {
  switch ($element['#type']) {
    case 'textfield':
      if ($element['#value'] == '') {
        form_error($element, t('Case Name may not be blank.'));
      }
      break;
    case 'checkboxes':
      if (empty($element['#value'])) {
        form_error($element, t('You must give at least one role access to this state.'));
      }
      break;
  }
}
You need to let Views know about your custom field in database with hook_views_data. Here is an article that explains all about it: http://blog.menhir.be/2008/10/22/expose-database-fields-to-views-in-a-custom-drupal-module/