i18n_panels.install 763 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * @file
  4. * Internationalization (i18n) submodule: Panels translation.
  5. */
  6. /**
  7. * Implements hook_requirements().
  8. */
  9. function i18n_panels_requirements($phase) {
  10. $requirements = array();
  11. // Check only for status report, to allow update / install.
  12. if ($phase == 'runtime') {
  13. // Check if the panels module runs with uuids.
  14. $requirements['uuid'] = array(
  15. 'title' => t('Panels uuid support.'),
  16. 'severity' => REQUIREMENT_OK,
  17. 'value' => t('Available'),
  18. );
  19. if (!db_field_exists('panels_pane', 'uuid')) {
  20. $requirements['uuid']['severity'] = REQUIREMENT_ERROR;
  21. $requirements['uuid']['value'] = t('Not found. Please apply the provided patches and run the update script.');
  22. }
  23. }
  24. return $requirements;
  25. }