function feeds_imagegrabber_get_settings in Feeds Image Grabber 7
Same name and namespace in other branches
- 6 feeds_imagegrabber.module \feeds_imagegrabber_get_settings()
Retrieve settings for a feed node from the database.
Parameters
$feed_nid: The nid of the feed node.
Return value
An array of settings or FALSE if settings not found.
2 calls to feeds_imagegrabber_get_settings()
- feeds_imagegrabber_feeds_set_target in ./
feeds_imagegrabber.module - Callback for mapping. Here is where the actual mapping happens.
- feeds_imagegrabber_form_node_form_alter in ./
feeds_imagegrabber.module - Implements hook_form_BASE_FORM_ID_alter().
File
- ./
feeds_imagegrabber.module, line 262 - Grabs images for items imported using the feeds module.
Code
function feeds_imagegrabber_get_settings($feed_nid) {
$settings = db_query("SELECT enabled, id_class, id_class_desc, feeling_lucky, exec_time FROM {feeds_imagegrabber} WHERE feed_nid = :feed_nid", array(
':feed_nid' => $feed_nid,
))
->fetchAssoc();
return $settings;
}