Quick question about the views ui

Events happening in the community are now at Drupal community events on www.drupal.org.
dstuart's picture

Hey,

I have a quick question about the view builder ui. I am wanting to add options into the top level of this ui when my module is turned on. I can see how to add sub-fields into areas (e.g. Using the hook_views_plugins I can add stuff to cache, style etc) but say if I wanted to add options for the "Advanced Settings" category how would I do that?
So far i've created a plugin as per below but I don't know have to register it in my module so it can do its thing

class my_views_plugin extends views_plugin {
 
   function option_definition() {
    $options = parent::option_definition();
    $options['my_view_'] = array(
        'category' => 'advanced',
        'title' => t('Extra options'),
        'value' => 'Default',
        'desc' => t('Add stuff to the view.'),
    );
    return $options;
  }
}

Thanks for the help in advance

Regards,

Dave

P.S Are there any good books are how to that cover this type of thing that I have missed, any help would be great

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: