You are here

function slickgrid_views_plugin::get_plugin_options in Slickgrid 6

1 call to slickgrid_views_plugin::get_plugin_options()
slickgrid_views_plugin::options_form in ./slickgrid_views_plugin.inc
Add settings for the particular slickgrid.

File

./slickgrid_views_plugin.inc, line 339

Class

slickgrid_views_plugin
Extending the view_plugin_style class to provide a slickgrid style.

Code

function get_plugin_options($plugins) {
  $options = array(
    '' => 'None',
  );

  // Just want the plugin description in the option field
  // Use array_map and anonymous funciton to retrieve the description
  return $options + (array) array_map(create_function('$plugins', 'return $plugins["description"];'), $plugins);
}