You are here

public function FeedsYoutubeParser::configForm in Feeds: YouTube Parser 7.3

Build configuration form.

File

plugins/FeedsYoutubeParser.inc, line 230
Feeds parser class for YouTube.

Class

FeedsYoutubeParser
Class definition for YouTube Parser.

Code

public function configForm(&$form_state) {
  $form = array();
  $form['authenticated_on_channel'] = array(
    '#type' => 'checkbox',
    '#title' => t('Authenticated on channel'),
    '#description' => t('If the channel you\'re retrieving data from, is owned by you or you\'re admin on it, opt in this option. You can Authenticate your access on youtube using "Authenticate Google API Account" tab.'),
    '#default_value' => isset($this->config['authenticated_on_channel']) ? $this->config['authenticated_on_channel'] : 0,
  );
  $form['import_video_limit'] = array(
    '#type' => 'textfield',
    '#title' => t('Limit the imported video number'),
    '#description' => t('Specify the limit of videos to import from youtube.'),
    '#default_value' => isset($this->config['import_video_limit']) ? $this->config['import_video_limit'] : 50,
  );
  $form['result_per_page'] = array(
    '#type' => 'textfield',
    '#title' => t('Limit videos per API request'),
    '#description' => t('Limit the number of retrieved video per API request.'),
    '#default_value' => isset($this->config['result_per_page']) ? $this->config['result_per_page'] : 50,
  );
  return $form;
}