You are here

function payment_page_required_modules in Payment 7

Menu page callback: show a message that describes the dependencies for viewing this page have not been met.

Parameters

array $modules: Keys are modules' machine names or numeric, values are modules' human-readable titles.

Return value

string

1 string reference to 'payment_page_required_modules'
payment_menu in ./payment.module
Implements hook_menu().

File

./payment.ui.inc, line 31
The Payment user interface.

Code

function payment_page_required_modules(array $modules) {
  foreach ($modules as $name => &$title) {
    if (is_string($name)) {
      $title = l($title, 'http://drupal.org/project/' . $name);
    }
  }
  return t('This page requires !modules.', array(
    '!modules' => implode(', ', $modules),
  ));
}