Module "Commerce add to cart confirmation" define custom status that not appear in NiceMessage settings form.

This patch allow
1. to add new statuses to NiceMessage settings form without hacking the module.
2. to translate status fieldset label

attached PATCH for module + nicemessages.api.php file

/**
 * Describe Nice Messages status types
 */
function hook_nicemessages_status_info() {
  return array(
    'new_status' => t('New Status Example'),
  );
}

Comments

dqd’s picture

Version: 7.x-2.1 » 7.x-2.x-dev

Sorry that I missed that one :/

sites/all/modules/nicemessages (7.x-2.x=) $ git apply -v implement-custom-status.patch
implement-custom-status.patch:10: trailing whitespace.
implement-custom-status.patch:13: trailing whitespace.
Checking patch public/sites/all/modules/nicemessages/nicemessages.module...
error: public/sites/all/modules/nicemessages/nicemessages.module: No such file or directory

Can somebody please reroll this patch?

dqd’s picture

Status: Active » Needs work