'', // Default YouTube user & password. 'youtube_username' => '', 'youtube_password' => '', // Player display options. 'show_related_videos' => 0, 'show_colors' => FALSE, 'show_border' => FALSE, 'colors_color1' => MEDIA_YOUTUBE_COLOR1_DEFAULT, 'colors_color2' => MEDIA_YOUTUBE_COLOR2_DEFAULT, 'full_screen' => 1, 'high_quality' => FALSE, 'display_info' => FALSE, 'enablejsapi' => TRUE, // Use Longtail/JW FLV Media Player to display videos? 'use_jw_flv' => FALSE, // Zend path. 'zend_path' => '', // Status message to display when a video is unavailable. 'status_display_'. EMFIELD_STATUS_UNAVAILABLE => '', // Whether to update the status on the fly. 'status_update_frequency' => MEDIA_YOUTUBE_STATUS_UPDATE_NONE, // Status message to display for unavailable duplicate videos. 'status_display_duplicates' => '', 'check_for_duplicates' => FALSE, // Status message to display for rejected videos. 'status_display_rejected' => '', 'check_for_rejected' => FALSE, // Status message to display for failed video uploads. 'status_display_upload_failed' => '', 'check_for_failed' => FALSE, 'cron_time' => 10, 'cron_limit' => 50, // If TRUE, then store the entire metadata fetched from YouTube. 'store_raw_metadata' => FALSE, // HTML5 Iframe variables. 'iframe_title' => 'YouTube video player', 'html5_player' => FALSE, // We accidentally destroyed all thumbnails in a bad update. // If that's been run improperly, then this will stay FALSE, and // we need to self-correct. 'media_youtube_update_6012' => FALSE, ); } if (!isset($name)) { return $defaults; } if (isset($defaults[$name])) { return $defaults[$name]; } } /** * Return the fully namespace variable name. * * @param string $name * The variable name to retrieve the namespaced name. * @return string * The fully namespace variable name, prepended with * MEDIA_YOUTUBE_NAMESPACE. */ function media_youtube_variable_name($name) { return MEDIA_YOUTUBE_NAMESPACE . $name; }