You are here

function views_bulk_operations_theme in Views Bulk Operations (VBO) 6

Same name and namespace in other branches
  1. 6.3 views_bulk_operations.module \views_bulk_operations_theme()
  2. 7.3 views_bulk_operations.module \views_bulk_operations_theme()

Implementation of hook_theme().

File

./views_bulk_operations.module, line 264
Allows operations to be performed on items selected in a view.

Code

function views_bulk_operations_theme() {
  $themes = array(
    'views_node_selector' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'views_bulk_operations_confirmation' => array(
      'arguments' => array(
        'objects' => NULL,
        'invert' => FALSE,
        'view' => NULL,
      ),
    ),
    'views_bulk_operations_select_all' => array(
      'arguments' => array(
        'colspan' => 0,
        'selection' => 0,
        'view' => NULL,
      ),
    ),
    'views_bulk_operations_table' => array(
      'arguments' => array(
        'header' => array(),
        'rows' => array(),
        'attributes' => array(),
        'title' => NULL,
        'view' => NULL,
      ),
      'pattern' => 'views_bulk_operations_table__',
    ),
  );

  // Load action theme files.
  foreach (_views_bulk_operations_load_actions() as $file) {
    $action_theme_fn = 'views_bulk_operations_' . $file . '_action_theme';
    if (function_exists($action_theme_fn)) {
      $themes += call_user_func($action_theme_fn);
    }
  }
  return $themes;
}