You are here

function payment_init in Payment 7

Implements hook_init().

File

./payment.module, line 79
Hook implementations and shared functions.

Code

function payment_init() {

  // Add administration CSS.
  if (preg_match('#^admin/config/services/payment/method#', $_GET['q']) || preg_match('#^admin/content/payment#', $_GET['q']) || preg_match('#^user/\\d+?/payment#', $_GET['q'])) {
    drupal_add_css(drupal_get_path('module', 'payment') . '/css/payment.css');
  }
}