123456789101112131415161718192021222324252627 |
- <?php
- /**
- * @file
- * Internationalization (i18n) submodule: Panels translation.
- */
- /**
- * Implements hook_requirements().
- */
- function i18n_panels_requirements($phase) {
- $requirements = array();
- // Check only for status report, to allow update / install.
- if ($phase == 'runtime') {
- // Check if the panels module runs with uuids.
- $requirements['uuid'] = array(
- 'title' => t('Panels uuid support.'),
- 'severity' => REQUIREMENT_OK,
- 'value' => t('Available'),
- );
- if (!db_field_exists('panels_pane', 'uuid')) {
- $requirements['uuid']['severity'] = REQUIREMENT_ERROR;
- $requirements['uuid']['value'] = t('Not found. Please apply the provided patches and run the update script.');
- }
- }
- return $requirements;
- }
|