Changeset 3447


Ignore:
Timestamp:
04/15/09 15:43:46 (3 years ago)
Author:
CrawfordCurrie
Message:

Item1383: make plugin get its preferences from global preferences, instead of from the plugin topic

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/InterwikiPlugin/lib/Foswiki/Plugins/InterwikiPlugin.pm

    r3444 r3447  
    4444our $RELEASE = '15 Apr 2009'; 
    4545our $NO_PREFS_IN_TOPIC = 1; 
     46our $SHORTDESCRIPTION = 'Link ExternalSite:Page text to external sites based on aliases defined in a rules topic'; 
    4647 
    4748our $interLinkFormat; 
  • trunk/PreferencesPlugin/data/System/PreferencesPlugin.txt

    r3416 r3447  
    1 %META:TOPICINFO{author="ProjectContributor" date="1115527529" format="1.0" version="$Rev$"}% 
    21---+!! <nop>%TOPIC% 
    32 
     
    2221   * =%<nop>EDITPREFERENCES{ "%<nop>SYSTEMWEB%.DefaultPreferencesForm" }%=  
    2322 
    24 ---++ Plugin Settings 
    25    * One line description, shown in the %SYSTEMWEB%.TextFormattingRules topic: 
     23<!-- 
    2624      * Set SHORTDESCRIPTION = Allows editing of preferences using fields predefined in a form 
     25--> 
    2726 
    2827---++ Plugin Installation Instructions 
     
    4544|  08 May 2005: | Add plugin preference to define default input length  | 
    4645|  07 May 2005: | Initial version | 
    47 |  Foswiki Dependency: | $Foswiki::Plugins::VERSION 1.026 | 
    48 |  CPAN Dependencies: | none | 
    49 |  Other Dependencies: | none | 
    50 |  Perl Version: | 5.008 | 
    5146|  Plugin Home: | http://foswiki.org/Extensions/%TOPIC% | 
    5247|  Support: | http://foswiki.org/Support/%TOPIC% | 
  • trunk/PreferencesPlugin/lib/Foswiki/Plugins/PreferencesPlugin.pm

    r1493 r3447  
    2626use strict; 
    2727 
    28 require Foswiki::Func;    # The plugins API 
    29 require Foswiki::Plugins; # For the API version 
    30  
    31 use vars qw( $VERSION $RELEASE @shelter ); 
    32  
    33 # This should always be $Rev$ so that Foswiki can determine the checked-in 
    34 # status of the plugin. It is used by the build automation tools, so 
    35 # you should leave it alone. 
    36 $VERSION = '$Rev$'; 
    37  
    38 # This is a free-form string you can use to "name" your own plugin version. 
    39 # It is *not* used by the build automation tools, but is reported as part 
    40 # of the version number in PLUGINDESCRIPTIONS. 
    41 $RELEASE = 'Foswiki-1.0'; 
     28use Foswiki::Func ();    # The plugins API 
     29use Foswiki::Plugins (); # For the API version 
     30 
     31use vars qw( @shelter ); 
     32 
     33our $VERSION = '$Rev$'; 
     34our $RELEASE = 'Foswiki-1.0'; 
     35our $SHORTDESCRIPTION = 'Allows editing of preferences using fields predefined in a form'; 
     36our $NO_PREFS_IN_TOPIC = 1; 
    4237 
    4338my $MARKER = "\007"; 
     
    8681    if ( $action eq 'edit' ) { 
    8782        Foswiki::Func::setTopicEditLock( $web, $topic, 1 ); 
    88          
     83 
    8984        # Replace setting values by form fields but not inside comments Item4816 
    9085        my $outtext = ''; 
     
    10297        } 
    10398        $_[0] = $outtext; 
    104            
     99 
    105100        $_[0] =~ s/%EDITPREFERENCES({.*?})?%/ 
    106101          _generateControlButtons($web, $topic)/ge; 
  • trunk/SmiliesPlugin/lib/Foswiki/Plugins/SmiliesPlugin.pm

    r3446 r3447  
    3333our $RELEASE = '03 Apr 2009'; 
    3434our $NO_PREFS_IN_TOPIC = 1; 
     35our $SHORTDESCRIPTION = 'Render smilies like :-) as icons'; 
    3536 
    3637sub initPlugin { 
Note: See TracChangeset for help on using the changeset viewer.