--- D:/Projects/drupal.modules/shopping/uc_notforsale-6.x-1.x-dev/uc_notforsale/uc_notforsale.module Tue Jun 08 14:18:26 2010 +++ D:/Projects/drupal.modules/shopping/uc_notforsale-6.x-1.x-dev/uc_notforsale/uc_notforsale.new.module Sat Sep 11 04:51:40 2010 @@ -126,25 +126,50 @@ * Define our built-in flag: 'notforsale'. */ function uc_notforsale_flag_default_flags() { - $flags = array(); - $flags[] = array( - 'content_type' => 'node', - 'name' => 'notforsale', - 'title' => 'Not for sale', - 'roles' => array('2'), - 'global' => TRUE, - 'types' => array('product'), - 'flag_short' => t('Remove from sale'), - 'flag_long' => '', - 'flag_message' => t('This product is no longer available in the store.'), - 'unflag_short' => t('Make available for sale'), - 'unflag_long' => '', - 'unflag_message' => t('This product is now available in the store.'), - 'show_on_page' => FALSE, - 'show_on_teaser' => FALSE, - 'show_on_form' => TRUE, - 'status' => TRUE, - 'locked' => array('name', 'global', 'status'), - ); - return $flags; +$flags = array(); +// Exported flag: "Not for sale". +$flags[] = array ( + 'content_type' => 'node', + 'name' => 'notforsale', + 'title' => 'Not for sale', + 'global' => true, + 'types' => + array ( + 0 => 'product', + ), + 'flag_short' => 'Remove from sale', + 'flag_long' => '', + 'flag_message' => 'This product is no longer available in the store.', + 'unflag_short' => 'Make available for sale', + 'unflag_long' => '', + 'unflag_message' => 'This product is now available in the store.', + 'unflag_denied_text' => '', + 'link_type' => 'toggle', + 'roles' => + array ( + 'flag' => + array ( + 0 => '2', + ), + 'unflag' => + array ( + 0 => '2', + ), + ), + 'show_on_page' => false, + 'show_on_teaser' => false, + 'show_on_form' => true, + 'access_author' => '', + 'i18n' => 0, + 'status' => false, + 'locked' => + array ( + 'name' => 'name', + 'global' => 'global', + 'status' => 'status', + ), + 'module' => 'uc_notforsale', + 'api_version' => 2, +); +return $flags; }