You are here

public static function InvoiceNumberPattern::getDefaultName in Commerce Invoice 7.2

Get the machine name of the default invoice number pattern.

Return value

string

5 calls to InvoiceNumberPattern::getDefaultName()
commerce_invoice_create_from_order_form in ./commerce_invoice.admin.inc
Form callback for invoicing orders.
commerce_invoice_form in ./commerce_invoice.admin.inc
Entity API form callback for an invoice.
commerce_invoice_rules_action_info in ./commerce_invoice.rules.inc
Implements hook_rules_action_info().
commerce_invoice_settings_form in ./commerce_invoice.admin.inc
Settings form for the Commerce Invoice module.
InvoiceNumberPattern::getDefault in src/Entity/InvoiceNumberPattern.php
Get the default invoice number pattern.

File

src/Entity/InvoiceNumberPattern.php, line 21
Invoice Number Pattern entity

Class

InvoiceNumberPattern

Namespace

Drupal\commerce_invoice\Entity

Code

public static function getDefaultName() {
  return variable_get('commerce_invoice_default_number_pattern', 'monthly');
}