You are here

function views_bulk_operations_help in Views Bulk Operations (VBO) 4.0.x

Same name and namespace in other branches
  1. 8.3 views_bulk_operations.module \views_bulk_operations_help()
  2. 8 views_bulk_operations.module \views_bulk_operations_help()
  3. 8.2 views_bulk_operations.module \views_bulk_operations_help()
  4. 5 views_bulk_operations.module \views_bulk_operations_help()

Implements hook_help().

File

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

Code

function views_bulk_operations_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.views_bulk_operations':
      $filepath = dirname(__FILE__) . '/README.txt';
      if (file_exists($filepath)) {
        $readme = file_get_contents($filepath);
        $output = '<pre>' . $readme . '</pre>';
        return $output;
      }
  }
}