You are here

function feeds_oauth_admin in Feeds OAuth 7

Form function for `feeds_oauth_admin`.

1 string reference to 'feeds_oauth_admin'
feeds_oauth_menu in ./feeds_oauth.module
Implements hook_menu().

File

./feeds_oauth.module, line 91
The module file.

Code

function feeds_oauth_admin($form, $form_state) {
  $form['feeds_oauth_library_path'] = array(
    '#type' => 'textfield',
    '#title' => t('Library path'),
    '#description' => t('Path for the <a href="@url">php-proauth</a> library.', array(
      '@url' => 'https://github.com/infojunkie/php-proauth',
    )),
    '#default_value' => variable_get('feeds_oauth_library_path', FEEDS_OAUTH_LIBRARY_PATH_DEFAULT),
    '#field_prefix' => DRUPAL_ROOT . '/',
  );
  $form['#validate'][] = '_feeds_oauth_admin_validate';
  return system_settings_form($form);
}