Add index keys to $options array
If the theme options array had index keys, then specific options could be more easily unset/disabled via child themes using the woo_options_add ( $options ) function. Currently, I have to do some recursive array searching.
However, if the array was structured like so:
$options['alt-stylesheet'] = array( 'name' => __( 'Theme Stylesheet', 'woothemes' ),
'desc' => __( 'Select your themes alternative color scheme.', 'woothemes' ),
'id' => $shortname . '_alt_stylesheet',
'std' => 'default.css',
'type' => 'select',
'options' => $alt_stylesheets );
Then a child theme could unset this option simply
unset( $options['alt-stylesheet' ] );
This shouldn't have any back-compat issues either.
This is being worked into the new WooFramework, and will be automated so older themes (with no preset keys) can get the benefit of having keys set, as well. :)
Kathy Darling commented
Great Matty! Glad to hear it. Some clients don't need as many options.