Projet

Général

Profil

Paste
Télécharger (763 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / panels / i18n_panels / i18n_panels.install @ 5a7e6170

1
<?php
2

    
3
/**
4
 * @file
5
 * Internationalization (i18n) submodule: Panels translation.
6
 */
7

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