You are here

function feeds_imagegrabber_get_default_settings in Feeds Image Grabber 7

Same name and namespace in other branches
  1. 6 feeds_imagegrabber.module \feeds_imagegrabber_get_default_settings()

Retrieve the default settings for a feed node from the database.

Return value

An array of settings.

3 calls to feeds_imagegrabber_get_default_settings()
feeds_imagegrabber_admin in ./feeds_imagegrabber.module
Implementation of the default settings admin form.
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 273
Grabs images for items imported using the feeds module.

Code

function feeds_imagegrabber_get_default_settings() {
  $default = array(
    'enabled' => 0,
    'id_class' => 0,
    'id_class_desc' => '',
    'exec_time' => 10,
    'feeling_lucky' => 0,
  );
  return variable_get('feeds_imagegrabber', $default);
}