/**
  * Config item introspection
  *
  * This method specifies the various configuration options who belongs to
  * this plugin.
  *
  * @param string $name Name of the configuration option
  * @param serendipity_property_ba $propbag Property bag to specify the configuration options
  * @return boolean
  */
 public function introspect_config_item($name, &$propbag)
 {
     switch ($name) {
         case 'sidebar_title':
             $propbag->add('name', SERENDIPITY_PLUGIN_HEAVYROTATION_CONFIG_SIDEBARTITLE_TITLE);
             $propbag->add('description', SERENDIPITY_PLUGIN_HEAVYROTATION_CONFIG_SIDEBARTITLE_DESCRIPTION);
             $propbag->add('type', 'string');
             $propbag->add('default', SERENDIPITY_PLUGIN_HEAVYROTATION_TITLE);
             break;
         case 'amazon_api_id':
             $propbag->add('name', SERENDIPITY_PLUGIN_HEAVYROTATION_CONFIG_AMAZONID_TITLE);
             $propbag->add('description', SERENDIPITY_PLUGIN_HEAVYROTATION_CONFIG_AMAZONID_DESCRIPTION);
             $propbag->add('type', 'string');
             $propbag->add('validate', 'string');
             break;
         case 'amazon_country_code':
             $propbag->add('name', SERENDIPITY_PLUGIN_HEAVYROTATION_CONFIG_AMAZONCC_TITLE);
             $propbag->add('description', SERENDIPITY_PLUGIN_HEAVYROTATION_CONFIG_AMAZONCC_DESCRIPTION);
             $propbag->add('type', 'select');
             $propbag->add('default', 'us');
             $propbag->add('select_values', $this->_country_codes);
             break;
         case 'audioscrobbler_username':
             $propbag->add('name', SERENDIPITY_PLUGIN_HEAVYROTATION_CONFIG_ASUSERNAME_TITLE);
             $propbag->add('description', SERENDIPITY_PLUGIN_HEAVYROTATION_CONFIG_ASUSERNAME_DESCRIPTION);
             $propbag->add('type', 'string');
             break;
         case 'cover_width':
             $propbag->add('name', SERENDIPITY_PLUGIN_HEAVYROTATION_CONFIG_COVER_WIDTH_TITLE);
             $propbag->add('description', SERENDIPITY_PLUGIN_HEAVYROTATION_CONFIG_COVER_WIDTH_DESCRIPTION);
             $propbag->add('type', 'string');
             $propbag->add('default', 400);
             break;
         case 'cover_height':
             $propbag->add('name', SERENDIPITY_PLUGIN_HEAVYROTATION_CONFIG_COVER_HEIGHT_TITLE);
             $propbag->add('description', SERENDIPITY_PLUGIN_HEAVYROTATION_CONFIG_COVER_HEIGHT_DESCRIPTION);
             $propbag->add('type', 'string');
             $propbag->add('default', 400);
             break;
     }
     return true;
 }
 /**
  * Config item introspection
  *
  * This method specifies the various configuration options who belongs to
  * this plugin.
  *
  * @param string $name Name of the configuration option
  * @param serendipity_property_ba $propbag Property bag to specify the configuration options
  * @return boolean
  */
 public function introspect_config_item($name, &$propbag)
 {
     switch ($name) {
         case 'sidebar_title':
             $propbag->add('name', SERENDIPITY_PLUGIN_FLICKRBADGE_CONFIG_SIDEBARTITLE_TITLE);
             $propbag->add('description', SERENDIPITY_PLUGIN_FLICKRBADGE_CONFIG_SIDEBARTITLE_DESCRIPTION);
             $propbag->add('type', 'string');
             $propbag->add('default', SERENDIPITY_PLUGIN_FLICKRBADGE_TITLE);
             break;
         case 'flickr_api_key':
             $propbag->add('name', SERENDIPITY_PLUGIN_FLICKRBADGE_CONFIG_APIKEY_TITLE);
             $propbag->add('description', SERENDIPITY_PLUGIN_FLICKRBADGE_CONFIG_APIKEY_DESCRIPTION);
             $propbag->add('type', 'string');
             $propbag->add('validate', 'string');
             break;
         case 'flickr_username':
             $propbag->add('name', SERENDIPITY_PLUGIN_FLICKRBADGE_CONFIG_USERNAME_TITLE);
             $propbag->add('description', SERENDIPITY_PLUGIN_FLICKRBADGE_CONFIG_USERNAME_DESCRIPTION);
             $propbag->add('type', 'string');
             break;
         case 'image_number':
             $propbag->add('name', SERENDIPITY_PLUGIN_FLICKRBADGE_CONFIG_NUMBER_TITLE);
             $propbag->add('description', SERENDIPITY_PLUGIN_FLICKRBADGE_CONFIG_NUMBER_DESCRIPTION);
             $propbag->add('type', 'string');
             $propbag->add('default', '4');
             $propbag->add('validate', 'number');
             break;
         case 'column_count':
             $propbag->add('name', SERENDIPITY_PLUGIN_FLICKRBADGE_CONFIG_COLUMNNUMBER_TITLE);
             $propbag->add('description', SERENDIPITY_PLUGIN_FLICKRBADGE_CONFIG_COLUMNNUMBER_DESCRIPTION);
             $propbag->add('type', 'string');
             $propbag->add('validate', 'number');
             $propbag->add('default', 2);
             break;
     }
     return true;
 }