You are here

function views_bulk_operations_theme in Views Bulk Operations (VBO) 7.3

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

Implements hook_theme().

File

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

Code

function views_bulk_operations_theme() {
  $themes = array(
    'views_bulk_operations_select_all' => array(
      'variables' => array(
        'view' => NULL,
        'enable_select_all_pages' => TRUE,
        'enable_select_this_page' => TRUE,
      ),
    ),
    'views_bulk_operations_confirmation' => array(
      'variables' => array(
        'rows' => NULL,
        'vbo' => NULL,
        'operation' => NULL,
        'select_all_pages' => FALSE,
      ),
    ),
  );
  $files = views_bulk_operations_load_action_includes();
  foreach ($files as $filename) {
    $action_theme_fn = 'views_bulk_operations_' . str_replace('.', '_', basename($filename, '.inc')) . '_theme';
    if (function_exists($action_theme_fn)) {
      $themes += call_user_func($action_theme_fn);
    }
  }
  return $themes;
}