sqlsrv.module 875 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Implements hook_module_implements_alter().
  4. *
  5. * Proactively prevents Drupal from identifying SQLSRV PHP module functions as
  6. * hook implementations.
  7. *
  8. * See http://php.net/manual/en/book.sqlsrv.php
  9. *
  10. * Known conflicts: Services module, hook_server_info
  11. */
  12. function sqlsrv_module_implements_alter(&$implementations, $hook) {
  13. if (in_array($hook, array(
  14. 'server_info',
  15. 'begin_transaction',
  16. 'cancel',
  17. 'client_info',
  18. 'close',
  19. 'commit',
  20. 'configure',
  21. 'connect',
  22. 'errors',
  23. 'execute',
  24. 'fetch_array',
  25. 'fetch_object',
  26. 'fetch',
  27. 'field_metadata',
  28. 'free_stmt',
  29. 'get_config',
  30. 'get_field',
  31. 'has_rows',
  32. 'next_result',
  33. 'num_fields',
  34. 'num_rows',
  35. 'prepare',
  36. 'query',
  37. 'rollback',
  38. 'rows_affected',
  39. 'send_stream_data',
  40. ))) {
  41. unset($implementations['sqlsrv']);
  42. }
  43. }