You are here

function jquery_social_stream_google_form in jQuery social stream 8.2

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

Google +1 settings form.

File

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

Code

function jquery_social_stream_google_form($conf) {
  $form = array();
  $api_key = \Drupal::config('jquery_social_stream.settings')
    ->get('google_key');
  if (!$api_key) {
    $form['#description'] = t('Please note you must enter Google +1 API key at <a href="/admin/config/services/jquery-social-stream">admin/config/services/jquery-social-stream</a> to display Google +1 feed');
  }
  _jquery_social_stream_settings_text($form, $conf, 'id', 'Google +1 profile IDs', '', '', 512);
  _jquery_social_stream_settings_text($form, $conf, 'intro', 'Feed item intro text', '', 'Shared');
  _jquery_social_stream_settings_text($form, $conf, 'out', 'Output', 'Stream item output: content blocks & order. Available options are: intro, thumb, title, text, share', 'intro,thumb,title,text,share');
  _jquery_social_stream_settings_text($form, $conf, 'image_height', 'Google +1 Thumbnail height', '', '90');
  _jquery_social_stream_settings_text($form, $conf, 'image_width', 'Google +1 Thumbnail width', '', '90');
  _jquery_social_stream_settings_select($form, $conf, 'shares', 'Include share stats', '', array(
    1 => t('Yes'),
    0 => t('No'),
  ), 1);
  return $form;
}