You are here

function iframe_requirements in Iframe 6

@file Defines simple iframe field types. based on the cck-module "link" by quicksketch Functions for install and uninstall AND Migrations

File

./iframe.install, line 10
Defines simple iframe field types. based on the cck-module "link" by quicksketch Functions for install and uninstall AND Migrations

Code

function iframe_requirements($phase) {
  $requirements = array();

  // Ensure translations don't break at install time
  $t = get_t();
  if (!module_exists('content') || !function_exists('content_notify')) {
    $requirements['iframe'] = array(
      'title' => $t('CCK needed'),
      'description' => $t("CCK module \"content\" required."),
      'severity' => REQUIREMENT_ERROR,
    );
  }
  return $requirements;
}