'SORT', 'auto_activate' => false, 'requires_pair' => true, 'load_function' => '\data_sort', 'title' => 'Sort', 'help_page' => 'DataPluginSort', 'description' => KernelTools::tra( "This plugin will sort the lines within a {sort} block." ), 'help_function' => '\data_sort_help', 'syntax' => "{sort sort= }".KernelTools::tra( "Lines to be sorted" )."{sort}", 'plugin_type' => DATA_PLUGIN, ]; $gLibertySystem->registerPlugin( PLUGIN_GUID_DATASORT, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATASORT ); /** * Help Function */ function data_sort_help() { $help ='
| '.KernelTools::tra( 'Key' ).' | '.KernelTools::tra( 'Value' ).' | '.KernelTools::tra( 'Comments' ).' |
|---|---|---|
| '.'sort' .' | '.KernelTools::tra( "key-words").' '.KernelTools::tra("(optional)").' |
'.KernelTools::tra( 'Will sort the lines in the desired direction. Choices are:' ).'asc, desc, reverse, shuffle'.KernelTools::tra( 'Default:' ).'asc'.' |