You are here

function invoice_settings in Invoice 7

Same name and namespace in other branches
  1. 6 invoice.module \invoice_settings()

Invoice settings

1 string reference to 'invoice_settings'
invoice_menu in ./invoice.module
Implements hook_menu()

File

./invoice.module, line 505
Invoice module

Code

function invoice_settings() {

  // A little test to see if the function _invoice_round() rounds well on every server
  if (_invoice_round(38.675, 2) != 38.68) {
    drupal_set_message(t('TEST: The answer of _invoice_round(38.675, 2) must be 38.68, but is @answer!' . ' This problem is maybe caused by your PHP version.', array(
      '@answer' => _invoice_round(38.675, 2),
    )), 'error');
  }
  $content = '';
  $content = drupal_get_form('invoice_settings_form');
  return $content;
}