function feeds_youtube_settings_from in Feeds: YouTube Parser 7.3
Implements hook_menu().
1 string reference to 'feeds_youtube_settings_from'
- feeds_youtube_menu in ./
feeds_youtube.module - Implements hook_menu().
File
- includes/
admin.inc, line 9 - admin functionality implementation.
Code
function feeds_youtube_settings_from() {
$form = array();
$form['google_oauth_api_key'] = array(
'#type' => 'textfield',
'#required' => TRUE,
'#description' => t('Google OAuth API Key'),
'#title' => 'Google API key',
'#length' => 50,
'#default_value' => variable_get('google_oauth_api_key', ''),
);
$form['google_oauth_client_id'] = array(
'#type' => 'textfield',
'#required' => TRUE,
'#description' => t('Google OAuth Client ID'),
'#title' => 'Client ID',
'#length' => 50,
'#default_value' => variable_get('google_oauth_client_id', ''),
);
$form['google_oauth_client_secret'] = array(
'#type' => 'textfield',
'#required' => TRUE,
'#description' => t('Google OAuth Client secret Key'),
'#title' => 'Client secret Key',
'#length' => 50,
'#default_value' => variable_get('google_oauth_client_secret', ''),
);
return system_settings_form($form);
}