public static function FeedImport::loadFeed in Feed Import 7.3
Loads a feed from database
Parameters
int|string $name: Feed machine name or id
Return value
object Feed object or FALSE
9 calls to FeedImport::loadFeed()
- drush_feed_import_base_feed in feed_import_base/
feed_import_base.drush.inc - Implements drush_COMMANDFILE_COMMANDNAME()
- feed_import_class_settings_form_submit in ./
feed_import.module - Options edit form submit
- feed_import_delete_feed_form_submit in ./
feed_import.module - Delete feed form submit
- feed_import_dynamic_func_form_submit in ./
feed_import.module - Dynamic functions form submit.
- feed_import_edit_feed_form_submit in ./
feed_import.module - Edit form submit
File
- feed_import_base/
inc/ feed_import.inc, line 280 - This file contains Feed Import helpers.
Class
- FeedImport
- This class provides helper functions for feed import.
Code
public static function loadFeed($name) {
$feed = db_select('feed_import_settings', 'f')
->fields('f')
->condition((int) $name ? 'id' : 'machine_name', $name, '=')
->range(0, 1)
->execute()
->fetchObject();
if (!$feed) {
return FALSE;
}
$feed->settings = unserialize($feed->settings);
return $feed;
}