You are here

function _optimizedb_list_tables_operation_execute_run in OptimizeDB 6

Same name and namespace in other branches
  1. 8 optimizedb.module \_optimizedb_list_tables_operation_execute_run()
  2. 7 optimizedb.module \_optimizedb_list_tables_operation_execute_run()

Batch function.

1 string reference to '_optimizedb_list_tables_operation_execute_run'
_optimizedb_list_tables_operation_execute in ./optimizedb.module
Performing operations on tables.

File

./optimizedb.module, line 401
Database Optimization.

Code

function _optimizedb_list_tables_operation_execute_run($param, &$context) {
  $operation_result = db_query($param['operation'] . ' ' . $param['name']);
  while ($result = db_fetch_object($operation_result)) {
    if (isset($result->Msg_type) && in_array(strtolower($result->Msg_type), array(
      'error',
      'warning',
    ))) {
      $context['results']['errors'][] = array(
        array(
          'data' => $param['name'],
        ),
        array(
          'data' => $result->Msg_type,
        ),
        array(
          'data' => $result->Msg_text,
        ),
      );
    }
  }
}