You are here

public function InstagramFeedsPluginsPager::configForm in Instagram Feeds 7

Override of parent::configForm().

File

modules/instagram_feeds_plugins/plugins/feeds/InstagramFeedsPluginsPager.inc, line 174
Home of the InstagramFeedsPluginsPager.

Class

InstagramFeedsPluginsPager
Fetches data via Instagram API with the ability to page all results.

Code

public function configForm(&$form_state) {
  $form = parent::configForm($form_state);
  $form['max_pages'] = array(
    '#type' => 'textfield',
    '#title' => t('Max pages'),
    '#default_value' => $this->config['max_pages'],
    '#description' => t('Provide the maximum amount of pages to crawl. If set to 0, no maximum will be enforced.'),
  );
  $form['number_of_images'] = array(
    '#type' => 'textfield',
    '#title' => t('Number of images'),
    '#default_value' => $this->config['number_of_images'],
    '#description' => t('Provide the amount of images to crawl. If set to 0, no maximum will be enforced.'),
    '#states' => array(
      'visible' => array(
        ':input[name="max_pages"]' => array(
          'value' => 0,
        ),
      ),
    ),
  );
  return $form;
}