You are here

function jquery_social_stream_youtube_form in jQuery social stream 8

Same name and namespace in other branches
  1. 8.2 jquery_social_stream.module \jquery_social_stream_youtube_form()
  2. 7.2 jquery_social_stream.module \jquery_social_stream_youtube_form()
  3. 7 jquery_social_stream.module \jquery_social_stream_youtube_form()

YouTube settings form.

File

./jquery_social_stream.module, line 503
Code for the Campaign social media module.

Code

function jquery_social_stream_youtube_form($conf) {
  $form = array();
  _jquery_social_stream_settings_text($form, $conf, 'id', 'YouTube ID', '<p>YouTube has 2 different ID options:</p>
<dl><dt>Videos from a specific user name</dt><dd>Enter the required user name (e.g. <em>designchemical</em>)</dd>
<dt>Videos from a search</dt><dd>Enter "#" followed by the search term (e.g. <em>#designchemical</em>)</dd>
<dt>Videos from a playlist</dt><dd>Enter the text you would like to show for the playlist name followed by "/" then the playlist ID (e.g. <em>Playlist Title/8BCDD04DE8F771B2</em>)</dd></dl>
<p>Note: The maximum limit for each youtube feed is 50 - if the limit option is set higher than 50 the plugin will automatically use 50 for youtube feeds.</p>', '', 512);
  _jquery_social_stream_settings_text($form, $conf, 'intro', 'Feed item intro text', '', 'Uploaded,Favorite,New Video');
  _jquery_social_stream_settings_text($form, $conf, 'search', 'Search item intro text', '', 'Search');
  _jquery_social_stream_settings_text($form, $conf, 'out', 'Output', 'Stream item output: content blocks & order. Available options: intro, thumb, title, text, user, share', 'intro,thumb,title,text,share');
  _jquery_social_stream_settings_text($form, $conf, 'feed', 'Feed options', 'Availavle options: uploads, favorites, newsubscriptionvideos. Only applies to user names.', 'uploads,favorites,newsubscriptionvideos');
  _jquery_social_stream_settings_select($form, $conf, 'thumb', 'Size of thumbnail image', '', array(
    'default' => '120px',
    0 => '480px',
  ), 'default');
  return $form;
}