summaryrefslogtreecommitdiff
path: root/plugins/BitlyUrl
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-10-07 13:08:23 -0700
committerBrion Vibber <brion@pobox.com>2010-10-07 13:08:23 -0700
commitfbfd96dfb945712b60f5b9f34aaaec5118e7c641 (patch)
tree2f965af93958c5b1999a99b1cb31e56a10c46d79 /plugins/BitlyUrl
parentcad480551675c05452df109e5c4d43018139d6a1 (diff)
Drop out the 'allow user override' checkbox on bit.ly admin panel until we find a good way to shove the user settings in. :)
Diffstat (limited to 'plugins/BitlyUrl')
-rw-r--r--plugins/BitlyUrl/bitlyadminpanelaction.php40
1 files changed, 0 insertions, 40 deletions
diff --git a/plugins/BitlyUrl/bitlyadminpanelaction.php b/plugins/BitlyUrl/bitlyadminpanelaction.php
index 805b56b85..046ae52c2 100644
--- a/plugins/BitlyUrl/bitlyadminpanelaction.php
+++ b/plugins/BitlyUrl/bitlyadminpanelaction.php
@@ -93,10 +93,6 @@ class BitlyadminpanelAction extends AdminPanelAction
'bitly' => array('default_login', 'default_apikey')
);
- static $booleans = array(
- 'bitly' => array('allow_override')
- );
-
$values = array();
foreach ($settings as $section => $parts) {
@@ -106,13 +102,6 @@ class BitlyadminpanelAction extends AdminPanelAction
}
}
- foreach ($booleans as $section => $parts) {
- foreach ($parts as $setting) {
- $values[$section][$setting]
- = ($this->boolean($setting)) ? 1 : 0;
- }
- }
-
// This throws an exception on validation errors
$this->validate($values);
@@ -129,12 +118,6 @@ class BitlyadminpanelAction extends AdminPanelAction
}
}
- foreach ($booleans as $section => $parts) {
- foreach ($parts as $setting) {
- Config::save($section, $setting, $values[$section][$setting]);
- }
- }
-
$config->query('COMMIT');
return;
@@ -240,29 +223,6 @@ class BitlyAdminPanelForm extends AdminForm
$this->out->elementEnd('ul');
$this->out->elementEnd('fieldset');
-
- $this->out->elementStart(
- 'fieldset',
- array('id' => 'settings_bitly-options')
- );
- $this->out->element('legend', null, _m('Options'));
-
- $this->out->elementStart('ul', 'form_data');
-
- $this->li();
-
- $this->out->checkbox(
- 'allow_override', _m('Allow users to specify their own API key.'),
- (bool) $this->value('bitly', 'allow_override'),
- _m('If set, users will be able to specify their own bit.ly login and API key ' .
- 'to be used for shortening their links.'),
- 'true'
- );
- $this->unli();
-
- $this->out->elementEnd('ul');
-
- $this->out->elementEnd('fieldset');
}
/**