This patch allows other modules to define custom formats using hook_mailing_label_formats()

Example:

/**
 * Implementation of hook_mailing_label_formats()
 */
function mymodule_mailing_label_formats() {
  return array( 
    'mymodule-123' => array(
      'name' => 'My Module 123',
      'paper-size' => 'A4', 
      'metric' => 'mm', 
      'lMargin' => 6,
      'tMargin' => 15.1, 
      'NX' => 3, 
      'NY' => 7, 
      'SpaceX' => 2.5, 
      'SpaceY' => 0,
      'width' => 63.5, 
      'height' => 38.1, 
      'font-size' => 9,
    ),
  );
}
CommentFileSizeAuthor
mailing_label.custom_formats.patch1.91 KBfranz

Comments

acouch’s picture

I agree with this and you are implementing it correctly. Unfortunately I don't have the time right now to keep up-to-date with this project. If you want to get more involved with it please contact me.

wim.notredame’s picture

this solution works fine for my problem
i needed to add 3 extra formats
thx

bluegeek9’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.