Ignore:
Timestamp:
08/28/06 15:55:24 (13 years ago)
Author:
ray
Message:
  • Ticket #835 Pass editor to custom filters
  • Ticket #836 Additional incarnations of fancy quotes
  • Ticket #837 Sort plugins in extended example
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/ext_example-menu.php

    r511 r560  
    260260<?php 
    261261        $d = @dir($LocalPluginPath); 
     262        $dir_array = array(); 
    262263        while (false !== ($entry = $d->read()))  //not a dot file or directory 
    263264        {       if(substr($entry,0,1) != '.') 
    264                 { echo '<label><input type="checkbox" name="plugins" id="plugins" value="' . $entry . '"> ' . $entry . '</label>'."\n"; 
     265                { 
     266                        $dir_array[] = $entry; 
    265267                } 
    266268        } 
    267269        $d->close(); 
     270        sort($dir_array); 
     271        foreach ($dir_array as $entry) 
     272        { 
     273                echo '<label><input type="checkbox" name="plugins" id="plugins" value="' . $entry . '"> ' . $entry . '</label>'."\n"; 
     274        } 
     275 
    268276?> 
    269277      </div> 
Note: See TracChangeset for help on using the changeset viewer.