function socialfeed_instagram_settings in Social Feed 7
Same name and namespace in other branches
- 7.2 socialfeed.admin.inc \socialfeed_instagram_settings()
Form builder; Configure social feeds settings for this site.
See also
1 string reference to 'socialfeed_instagram_settings'
- socialfeed_menu in ./
socialfeed.module - Implements hook_menu().
File
- ./
socialfeed.admin.inc, line 191 - Social Feed module admin inc file.
Code
function socialfeed_instagram_settings($form, &$form_state) {
$form['socialfeed_instagram_user_id'] = array(
'#type' => 'textfield',
'#title' => t('User ID'),
'#description' => t('Fetch the Instagram User ID from <a href="@jelled" target="@blank">here</a>.', array(
'@jelled' => 'http://jelled.com/instagram/lookup-user-id',
'@blank' => '_blank',
)),
'#default_value' => variable_get('socialfeed_instagram_user_id'),
'#size' => 60,
'#maxlength' => 100,
'#required' => TRUE,
);
$form['socialfeed_instagram_api_key'] = array(
'#type' => 'textfield',
'#title' => t('API Key'),
'#default_value' => variable_get('socialfeed_instagram_api_key'),
'#size' => 60,
'#maxlength' => 100,
'#required' => TRUE,
);
$form['socialfeed_instagram_api_secret'] = array(
'#type' => 'textfield',
'#title' => t('API Secret'),
'#default_value' => variable_get('socialfeed_instagram_api_secret'),
'#size' => 60,
'#maxlength' => 100,
'#required' => TRUE,
);
$form['socialfeed_instagram_redirect_uri'] = array(
'#type' => 'textfield',
'#title' => t('Redirect URI'),
'#default_value' => variable_get('socialfeed_instagram_redirect_uri'),
'#size' => 60,
'#maxlength' => 100,
'#required' => TRUE,
);
$form['socialfeed_instagram_picture_count'] = array(
'#type' => 'textfield',
'#title' => t('Picture Count'),
'#default_value' => variable_get('socialfeed_instagram_picture_count', 1),
'#size' => 60,
'#maxlength' => 100,
);
$form['socialfeed_instagram_picture_resolution'] = array(
'#type' => 'select',
'#title' => t('Picture Resolution'),
'#default_value' => variable_get('socialfeed_instagram_picture_resolution', 'thumbnail'),
'#options' => array(
'thumbnail' => t('Thumbnail'),
'low_resolution' => t('Low Resolution'),
'standard_resolution' => t('Standard Resolution'),
),
);
return system_settings_form($form);
}