You are here

i18n_panels.install in Panels 7.3

Internationalization (i18n) submodule: Panels translation.

File

i18n_panels/i18n_panels.install
View source
<?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;
}

Functions

Namesort descending Description
i18n_panels_requirements Implements hook_requirements().