function twitter_signin_admin_settings in Twitter 6.3
Same name and namespace in other branches
- 6.5 twitter_signin/twitter_signin.pages.inc \twitter_signin_admin_settings()
- 6.4 twitter_signin/twitter_signin.pages.inc \twitter_signin_admin_settings()
- 7.6 twitter_signin/twitter_signin.pages.inc \twitter_signin_admin_settings()
- 7.3 twitter_signin/twitter_signin.pages.inc \twitter_signin_admin_settings()
- 7.4 twitter_signin/twitter_signin.pages.inc \twitter_signin_admin_settings()
- 7.5 twitter_signin/twitter_signin.pages.inc \twitter_signin_admin_settings()
1 string reference to 'twitter_signin_admin_settings'
- twitter_signin_menu in twitter_signin/
twitter_signin.module - Implementation of hook_menu().
File
- twitter_signin/
twitter_signin.pages.inc, line 3
Code
function twitter_signin_admin_settings() {
$form = array();
$img_path = drupal_get_path('module', 'twitter_signin') . '/images';
$results = file_scan_directory($img_path, '.png');
$options = array();
foreach ($results as $image) {
$options[$image->basename] = theme('image', $image->filename);
}
$form['twitter_signin_button'] = array(
'#type' => 'radios',
'#title' => t('Select sign-in button'),
'#options' => $options,
'#default_value' => variable_get('twitter_signin_button', 'Sign-in-with-Twitter-lighter-small.png'),
);
$form['twitter_signin_register'] = array(
'#title' => t('Automatically register new users'),
'#type' => 'radios',
'#options' => array(
0 => t('No'),
1 => t('Yes'),
),
'#default_value' => variable_get('twitter_signin_register', 0),
'#description' => t('Warning, if you enable this, new user accounts will be created without email addresses.'),
);
return system_settings_form($form);
}