You are here

public function FeedsImporter::load in Feeds 7.2

Same name and namespace in other branches
  1. 6 includes/FeedsImporter.inc \FeedsImporter::load()
  2. 7 includes/FeedsImporter.inc \FeedsImporter::load()

Load configuration and unpack.

1 call to FeedsImporter::load()
FeedsImporter::__construct in includes/FeedsImporter.inc
Instantiate class variables, initialize and configure plugins.

File

includes/FeedsImporter.inc, line 132
FeedsImporter class and related.

Class

FeedsImporter
Class for a Feeds importer.

Code

public function load() {
  ctools_include('export');
  if ($config = ctools_export_load_object('feeds_importer', 'conditions', array(
    'id' => $this->id,
  ))) {
    $config = array_shift($config);
    $this->export_type = $config->export_type;
    $this->disabled = isset($config->disabled) ? $config->disabled : FALSE;
    $this->config = $config->config;
    return TRUE;
  }
  return FALSE;
}