You are here

function sheetnode_phpexcel_get_plugins in Sheetnode 6

Same name and namespace in other branches
  1. 5 modules/sheetnode_phpexcel/sheetnode_phpexcel.module \sheetnode_phpexcel_get_plugins()
  2. 7.2 modules/sheetnode_phpexcel/sheetnode_phpexcel.module \sheetnode_phpexcel_get_plugins()
  3. 7 modules/sheetnode_phpexcel/sheetnode_phpexcel.module \sheetnode_phpexcel_get_plugins()

API function to fetch existing PHPExcel plugins.

7 calls to sheetnode_phpexcel_get_plugins()
sheetnode_phpexcel_link in modules/sheetnode_phpexcel/sheetnode_phpexcel.module
Implementation of hook_link().
sheetnode_phpexcel_menu in modules/sheetnode_phpexcel/sheetnode_phpexcel.module
Implementation of hook_menu().
sheetnode_phpexcel_plugin_style::attach_to in modules/sheetnode_phpexcel/sheetnode_phpexcel_plugin_style.inc
sheetnode_phpexcel_plugin_style::options_form in modules/sheetnode_phpexcel/sheetnode_phpexcel_plugin_style.inc
_sheetnode_phpexcel_batch_export_finished in modules/sheetnode_phpexcel/sheetnode_phpexcel.export.inc
Batch API callback upon export completion.

... See full list

File

modules/sheetnode_phpexcel/sheetnode_phpexcel.module, line 68

Code

function sheetnode_phpexcel_get_plugins($dir = 'all') {
  $plugins = module_invoke_all('sheetnode_phpexcel_plugins');
  drupal_alter('sheetnode_phpexcel_plugins', $plugins);
  if ($dir != 'all') {
    foreach ($plugins as $format => $plugin) {
      if (empty($plugin[$dir])) {
        unset($plugins[$format]);
      }
    }
  }
  return $plugins;
}