You are here

function livestream_fb_settings in Facebook social plugins integration 7.2

Same name and namespace in other branches
  1. 6.2 plugins/fb_plugin/livestream.inc \livestream_fb_settings()

File

plugins/fb_plugin/livestream.inc, line 29

Code

function livestream_fb_settings($options) {
  $form = array();
  $form['event_app_id'] = array(
    '#type' => 'textfield',
    '#title' => t('App ID'),
    '#description' => t('Your facebook application ID or API key'),
  );
  $form['width'] = array(
    '#type' => 'textfield',
    '#title' => t('Width'),
    '#description' => t('The width of the plugin in pixel'),
  );
  $form['height'] = array(
    '#type' => 'textfield',
    '#title' => t('Height'),
    '#description' => t('The height of the plugin in pixel'),
  );
  $form['xid'] = array(
    '#type' => 'textfield',
    '#title' => t('XID'),
    '#description' => t('If you have multiple live stream boxes on the same page, specify a unique \'xid\' for each'),
  );
  $form['via_url'] = array(
    '#type' => 'textfield',
    '#title' => t('Via Attribution URL'),
    '#description' => t('The URL that users are redirected to when they click on your app name on a status (if not specified, your Connect URL is used)'),
  );
  $form['always_post_to_friends'] = array(
    '#type' => 'checkbox',
    '#title' => t('Always post to friends'),
    '#description' => t('If set, all user posts will always go to their profile. This option should only be used when users' posts are likely to make sense outside of the context of the event.'),
  );
  $defaults = livestream_defaults();
  foreach ($form as $id => $f) {
    $form[$id]['#default_value'] = isset($options[$id]) ? $options[$id] : $defaults[$id];
  }
  return $form;
}