function feeds_imagegrabber_get_settings in Feeds Image Grabber 6
Same name and namespace in other branches
- 7 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 - Implementation of hook_feeds_set_target().
- feeds_imagegrabber_form_alter in ./
feeds_imagegrabber.module - Implementation of hook_form_alter().
File
- ./
feeds_imagegrabber.module, line 253 - Grabs image for each feed-item from their respective web pages and stores it in an image field. Requires Feeds module.
Code
function feeds_imagegrabber_get_settings($feed_nid) {
$settings = db_fetch_array(db_query("SELECT enabled, id_class, id_class_desc, feeling_lucky, exec_time FROM {feeds_imagegrabber} WHERE feed_nid = %d", $feed_nid));
return $settings;
}