HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: nexper (1054)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nexper/www/sites/all/modules/photobox/photobox.install
<?php

/**
 * @file
 * Install, update and uninstall functions for the Photobox module.
 */

/**
 * Implements hook_install().
 */
function photobox_install() {
}

/**
 * Implements hook_uninstall().
 */
function photobox_uninstall() {
  variable_del('photobox_library_path');
}

/**
 * Implements hook_requirements().
 */
function photobox_requirements($phase) {
  $requirements = array();
  // Ensure translations don't break at install time
  $t = get_t();

  if ($phase == 'runtime') {
    if ($photobox_version = _photobox_library_version()) {
      $requirements['photobox'] = array(
        'title' => $t('Photobox library'),
        'value' => $photobox_version,
        'severity' => REQUIREMENT_OK,
      );
    }
    else {
      $requirements['photobox'] = array(
        'title' => $t('Photobox library'),
        'value' => $t('Photobox library is missing'),
        'severity' => REQUIREMENT_ERROR,
      );
    }
  }

  return $requirements;
}