Skip to content

Commit

Permalink
ExpandURLs plugin: Don't require Bitly and Flickr keys to save settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ginatrapani committed Jul 5, 2012
1 parent f97467b commit da5ca95
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -42,13 +42,16 @@ public function authControl() {
// API key text field
$this->addPluginOption(self::FORM_TEXT_ELEMENT, array('name'=>'flickr_api_key', 'size'=>40,
'label'=>'Flickr API key (<a href="http://www.flickr.com/services/api/keys/">Get it here</a>)')); // add element
$this->setPluginOptionNotRequired('flickr_api_key');

$this->addPluginOption(self::FORM_TEXT_ELEMENT, array('name'=>'bitly_login',
'label'=>'Bit.ly Username'));
$this->setPluginOptionNotRequired('bitly_login');

$this->addPluginOption(self::FORM_TEXT_ELEMENT, array('name'=>'bitly_api_key', 'size'=>40,

'label'=>'Bit.ly API key (<a href="http://bitly.com/a/your_api_key">Get it here</a>)'));
$this->setPluginOptionNotRequired('bitly_api_key');

$this->addToView('is_configured', true);

return $this->generateView();
Expand Down

0 comments on commit da5ca95

Please sign in to comment.