You are here

public function FeedsSQLParser::getMappingSources in Feeds SQL 7

Override parent::getMappingSources().

File

plugins/FeedsSQLParser.inc, line 29

Class

FeedsSQLParser
Parses data from an SQL database.

Code

public function getMappingSources() {
  $config = $this
    ->getConfig();
  $sources = array();
  foreach ($config['mapping'] as $field) {
    $sources[$field] = array(
      'name' => $field,
      'description' => $field,
    );
  }
  if (!empty($sources)) {
    return $sources;
  }
  else {
    return parent::getMappingSources();
  }
}