You are here

function _xmlsitemap_get_field_type in XML sitemap 6.2

Given an table and field, return the field type.

Parameters

$table: The table name.

$field: The field name.

Return value

The schema type of {table}.field.

3 calls to _xmlsitemap_get_field_type()
xmlsitemap_get_link_type_indexed_status in ./xmlsitemap.module
xmlsitemap_rebuild_batch_fetch in ./xmlsitemap.generate.inc
Batch callback; fetch and add the sitemap links for a specific entity.
_xmlsitemap_build_conditions in ./xmlsitemap.inc
Condition builder for queries.

File

./xmlsitemap.module, line 1529
Main file for the xmlsitemap module.

Code

function _xmlsitemap_get_field_type($table, $field) {
  $schema =& xmlsitemap_static(__FUNCTION__);
  if (!isset($schema[$table])) {
    $schema[$table] = drupal_get_schema($table);
  }
  return $schema[$table]['fields'][$field]['type'];
}