xero-8.x-2.x-dev/xero.module

xero.module
<?php

/**
 * @file
 * Xero API module.
 */

/**
 * Implements hook_theme().
 */
function xero_theme($existing, $type, $theme, $path) {
  return [
    'xero_reference' => [
      'variables' => [
        'item' => NULL,
        'delta' => NULL,
        'definition' => NULL,
        'settings' => NULL,
        'attributes' => NULL,
      ],
      'file' => 'xero.theme.inc',
      'template' => 'xero-reference',
    ],
    'xero_account' => [
      'variables' => ['item' => NULL, 'attributes' => NULL],
      'file' => 'xero.theme.inc',
      'template' => 'xero-account',
    ],
    'xero_bank_transaction' => [
      'variables' => [
        'transaction' => NULL,
        'items' => NULL,
        'contact' => NULL,
        'attributes' => NULL,
      ],
      'file' => 'xero.theme.inc',
      'template' => 'xero-bank-transaction',
    ],
    'xero_contact' => [
      'variables' => ['item' => NULL, 'attributes' => NULL],
      'file' => 'xero.theme.inc',
      'template' => 'xero-contact',
    ],
    'xero_credit_note' => [
      'variables' => [
        'credit' => NULL,
        'contact' => NULL,
        'items' => NULL,
        'attributes' => NULL,
      ],
      'file' => 'xero.theme.inc',
      'template' => 'xero-credit-note',
    ],
    'xero_employee' => [
      'variables' => ['item' => NULL, 'attributes' => NULL],
      'file' => 'xero.theme.inc',
      'template' => 'xero-employee',
    ],
    'xero_expense' => [
      'variables' => [
        'expense' => NULL,
        'user' => NULL,
        'payments' => NULL,
        'receipts' => NULL,
        'attributes' => NULL,
      ],
      'file' => 'xero.theme.inc',
      'template' => 'xero-expense',
    ],
    'xero_invoice' => [
      'variables' => [
        'invoice' => NULL,
        'items' => NULL,
        'payments' => NULL,
        'contact' => NULL,
        'attributes' => NULL,
      ],
      'file' => 'xero.theme.inc',
      'template' => 'xero-invoice',
    ],
    'xero_item' => [
      'variables' => ['item' => NULL, 'attributes' => NULL],
      'file' => 'xero.theme.inc',
      'template' => 'xero-item',
    ],
    'xero_journal' => [
      'variables' => [
        'journal' => NULL,
        'items' => NULL,
        'attributes' => NULL,
      ],
      'file' => 'xero.theme.inc',
      'template' => 'xero-journal',
    ],
    'xero_payment' => [
      'variables' => ['item' => NULL, 'attributes' => NULL],
      'file' => 'xero.theme.inc',
      'template' => 'xero-payment',
    ],
    'xero_receipt' => [
      'variables' => [
        'receipt' => NULL,
        'user' => NULL,
        'contact' => NULL,
        'items' => NULL,
        'attributes' => NULL,
      ],
      'file' => 'xero.theme.inc',
      'template' => 'xero-receipt',
    ],
    'xero_user' => [
      'variables' => ['item' => NULL, 'attributes' => NULL],
      'file' => 'xero.theme.inc',
      'template' => 'xero-user',
    ],
  ];
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc