--- D:/uc_notforsale/uc_notforsale.module.orig Tue Jun 08 14:18:26 2010 +++ D:/uc_notforsale/uc_notforsale.module Sat Oct 23 11:36:44 2010 @@ -127,24 +127,49 @@ */ function uc_notforsale_flag_default_flags() { $flags = array(); - $flags[] = array( + // Exported flag: "Not for sale". + $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'), + 'global' => true, + 'types' => + array ( + 0 => 'product', + ), + 'flag_short' => 'Remove from sale', 'flag_long' => '', - 'flag_message' => t('This product is no longer available in the store.'), - 'unflag_short' => t('Make available for sale'), + 'flag_message' => 'This product is no longer available in the store.', + 'unflag_short' => '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'), + '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; }