[wp-trac] [WordPress Trac] #18285: New Settings API and workflow

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 28 21:06:36 UTC 2011


#18285: New Settings API and workflow
----------------------------+------------------
 Reporter:  nacin           |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.3
Component:  Plugins         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+------------------

Comment (by scribu):

 Regarding form field construction, I have a class that does it, which
 looks like this:

 {{{
 scbForms::input( array(
   'type' => 'select',
   'name' => 'color',
   'values' => array(
     'white' => __( 'White' ),
     'green' => __( 'Green' ),
     ...
   )
 ) );
 }}}

 It can also generate radio buttons and checkbox groups, for multiple
 choice options.

 [http://plugins.trac.wordpress.org/browser/scb-framework/trunk/example.php
 More Examples] | [http://plugins.trac.wordpress.org/browser/scb-
 framework/trunk/scb/Forms.php Source code]

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18285#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list