You are here

function _feed_import_get_fields_opts in Feed Import 7.3

Gets an array containing entity fields

Parameters

object $e: Entity info

Return value

array Array with groupped fields

1 call to _feed_import_get_fields_opts()
feed_import_static_fields_form in ./feed_import.module
Static fields form

File

./feed_import.module, line 1565
User interface, cron functions for feed_import module

Code

function _feed_import_get_fields_opts($e) {
  $er = array();

  // Handle properties.
  if ($el = array_combine($e->properties, $e->properties)) {
    $el = array(
      '#' => $el,
    );
  }

  // Handle fields.
  foreach ($e->fields as $f => $val) {
    foreach ($val['columns'] as $col) {
      $el[$f][$col] = $f . ':' . $col;
    }
  }
  return $el;
}