function _video_image_promote_thumbnails in Video 6.2
Same name and namespace in other branches
- 5 plugins/video_image/video_image.module \_video_image_promote_thumbnails()
- 6 plugins/video_image/video_image.module \_video_image_promote_thumbnails()
2 calls to _video_image_promote_thumbnails()
- video_image_admin_settings in plugins/
video_image/ video_image.module - Settings form
- _video_image_presave in plugins/
video_image/ video_image.module
File
- plugins/
video_image/ video_image.module, line 531 - Enable image support for video module.
Code
function _video_image_promote_thumbnails() {
$settings_override = variable_get('video_image_promote_thumbnail', NULL);
if ($settings_override === NULL) {
//GMM: Don't default to "promote" if no video or Image option specified
//confusing to n00bs seeing two nodes promoted for every video node
$node_options = variable_get('node_options_image', array());
return in_array('promote', $node_options);
}
return $settings_override;
}