public function SocialContentTumblr::instanceSettingsForm in Social Content 7.2
Instance settings form.
Return value
array Any instance settings that will be included on all instance forms for the current global.
Overrides SocialContent::instanceSettingsForm
File
- modules/
tumblr/ social_content_tumblr.class.inc, line 115 - Social Content Tumblr class.
Class
- SocialContentTumblr
- @file Social Content Tumblr class.
Code
public function instanceSettingsForm() {
$settings = $this->settings['instance'];
$form = parent::instanceSettingsForm($settings);
$form['host_name'] = array(
'#type' => 'textfield',
'#title' => t('Blog Hostname'),
'#description' => t("Each blog has a unique hostname. i.e. 'natgeofound.tumblr.com'"),
'#default_value' => isset($settings['host_name']) ? $settings['host_name'] : NULL,
'#required' => TRUE,
);
$form['type'] = array(
'#type' => 'checkboxes',
'#title' => t('Type'),
'#options' => array(
'text' => t('Text'),
'photo' => t('Photo'),
//'quote' => t('Quote'),
//'link' => t('Link'),
//'chat' => t('Chat'),
//'audio' => t('Audio'),
'video' => t('Video'),
),
'#required' => TRUE,
'#description' => t("Which content types should be imported. For now, only 'Text', 'Photo' and 'Video' are supported ."),
'#default_value' => isset($settings['type']) ? $settings['type'] : array(),
);
return $form;
}