diff --git a/disqus.module b/disqus.module
index 5850e66..9184820 100644
--- a/disqus.module
+++ b/disqus.module
@@ -887,101 +887,6 @@ function disqus_views_api() {
}
/**
- * Implements hook_variable_info().
- */
-function disqus_variable_info($options) {
- $variable['disqus_domain'] = array(
- 'type' => 'string',
- 'title' => t('Shortname', array(), $options),
- 'description' => t('The website shortname that you registered Disqus with. If you registered http://example.disqus.com, you would enter "example" here.'),
- 'default' => '',
- 'group' => 'disqus'
- );
- $variable['disqus_location'] = array(
- 'type' => 'string',
- 'title' => t('Location', array(), $options),
- 'description' => t('Display the Disqus comments in the given location. When "Block" is selected, the comments will appear in the Disqus Comments block.', array('@disquscomments' => url('admin/structure/block'))),
- 'default' => '',
- 'group' => 'disqus'
- );
- $variable['disqus_weight'] = array(
- 'type' => 'string',
- 'title' => t('Weight', array(), $options),
- 'description' => t('When the comments are displayed in the content area, you can change the position at which they will be shown.'),
- 'default' => '',
- 'group' => 'disqus'
- );
- $variable['disqus_userapikey'] = array(
- 'type' => 'string',
- 'title' => t('User API Key'),
- 'description' => t('The API key of the administrator account on Disqus. You can get yours here.', array('@key' => 'http://disqus.com/api/get_my_key/')),
- 'default' => '',
- 'group' => 'disqus'
- );
- $variable['disqus_localization'] = array(
- 'type' => 'string',
- 'title' => t('Localization support'),
- 'description' => t("When enabled, overrides the language set by Disqus with the language provided by the site."),
- 'default' => '',
- 'group' => 'disqus'
- );
- $variable['disqus_inherit_login'] = array(
- 'type' => 'string',
- 'title' => t('Inherit User Credentials'),
- 'description' => t("When enabled and a user is logged in, the Disqus 'Post as Guest' login form will be pre-filled with the user's name and email address."),
- 'default' => '',
- 'group' => 'disqus'
- );
- $variable['disqus_developer'] = array(
- 'type' => 'string',
- 'title' => t('Testing'),
- 'description' => t('When enabled, uses the disqus_developer flag to tell Disqus that you are in a testing environment. Threads will not display on the public community page with this set.'),
- 'default' => '',
- 'group' => 'disqus'
- );
- $variable['disqus_useraccesstoken'] = array(
- 'type' => 'string',
- 'title' => t('User Access Token'),
- 'default' => '',
- 'group' => 'disqus'
- );
- $variable['disqus_publickey'] = array(
- 'type' => 'string',
- 'title' => t('Public Key'),
- 'default' => '',
- 'group' => 'disqus'
- );
- $variable['disqus_secretkey'] = array(
- 'type' => 'string',
- 'title' => t('Secret Key'),
- 'default' => '',
- 'group' => 'disqus'
- );
- $variable['disqus_sso'] = array(
- 'type' => 'string',
- 'title' => t('Single Sign-On'),
- 'description' => t('Provide Single Sign-On access to your site.', array(
- '@sso' => 'http://disqus.com/api/sso/',
- )),
- 'default' => '',
- 'group' => 'disqus'
- );
- return $variable;
-}
-
-/**
- * Implements hook_variable_group_info().
- */
-function disqus_variable_group_info() {
- $groups['disqus'] = array(
- 'title' => t('Disqus'),
- 'access' => 'Administer Disqus',
- 'path' => 'admin/config/services/disqus',
- );
- return $groups;
-}
-
-/**
* Computes the full settings associated with Disqus SSO.
*
* These need to be merged into the settings for basic Disqus integration for
diff --git a/disqus.variable.inc b/disqus.variable.inc
new file mode 100644
index 0000000..56ac749
--- /dev/null
+++ b/disqus.variable.inc
@@ -0,0 +1,101 @@
+ t('Disqus'),
+ 'access' => 'Administer Disqus',
+ 'path' => 'admin/config/services/disqus',
+ );
+ return $groups;
+}
+
+/**
+ * Implements hook_variable_info().
+ */
+function disqus_variable_info($options) {
+ $variable['disqus_domain'] = array(
+ 'type' => 'string',
+ 'title' => t('Shortname', array(), $options),
+ 'description' => t('The website shortname that you registered Disqus with. If you registered http://example.disqus.com, you would enter "example" here.'),
+ 'default' => '',
+ 'group' => 'disqus',
+ );
+ $variable['disqus_location'] = array(
+ 'type' => 'string',
+ 'title' => t('Location', array(), $options),
+ 'description' => t('Display the Disqus comments in the given location. When "Block" is selected, the comments will appear in the Disqus Comments block.', array('@disquscomments' => url('admin/structure/block'))),
+ 'default' => '',
+ 'group' => 'disqus',
+ );
+ $variable['disqus_weight'] = array(
+ 'type' => 'string',
+ 'title' => t('Weight', array(), $options),
+ 'description' => t('When the comments are displayed in the content area, you can change the position at which they will be shown.'),
+ 'default' => '',
+ 'group' => 'disqus',
+ );
+ $variable['disqus_userapikey'] = array(
+ 'type' => 'string',
+ 'title' => t('User API Key'),
+ 'description' => t('The API key of the administrator account on Disqus. You can get yours here.', array('@key' => 'http://disqus.com/api/get_my_key/')),
+ 'default' => '',
+ 'group' => 'disqus',
+ );
+ $variable['disqus_localization'] = array(
+ 'type' => 'string',
+ 'title' => t('Localization support'),
+ 'description' => t("When enabled, overrides the language set by Disqus with the language provided by the site."),
+ 'default' => '',
+ 'group' => 'disqus',
+ );
+ $variable['disqus_inherit_login'] = array(
+ 'type' => 'string',
+ 'title' => t('Inherit User Credentials'),
+ 'description' => t("When enabled and a user is logged in, the Disqus 'Post as Guest' login form will be pre-filled with the user's name and email address."),
+ 'default' => '',
+ 'group' => 'disqus',
+ );
+ $variable['disqus_developer'] = array(
+ 'type' => 'string',
+ 'title' => t('Testing'),
+ 'description' => t('When enabled, uses the disqus_developer flag to tell Disqus that you are in a testing environment. Threads will not display on the public community page with this set.'),
+ 'default' => '',
+ 'group' => 'disqus',
+ );
+ $variable['disqus_useraccesstoken'] = array(
+ 'type' => 'string',
+ 'title' => t('User Access Token'),
+ 'default' => '',
+ 'group' => 'disqus',
+ );
+ $variable['disqus_publickey'] = array(
+ 'type' => 'string',
+ 'title' => t('Public Key'),
+ 'default' => '',
+ 'group' => 'disqus',
+ );
+ $variable['disqus_secretkey'] = array(
+ 'type' => 'string',
+ 'title' => t('Secret Key'),
+ 'default' => '',
+ 'group' => 'disqus',
+ );
+ $variable['disqus_sso'] = array(
+ 'type' => 'string',
+ 'title' => t('Single Sign-On'),
+ 'description' => t('Provide Single Sign-On access to your site.', array(
+ '@sso' => 'http://disqus.com/api/sso/',
+ )),
+ 'default' => '',
+ 'group' => 'disqus',
+ );
+ return $variable;
+}