Index: branches/5.2.x/units/private_message_body/private_message_body_config.php =================================================================== diff -u -N -r14252 -r16384 --- branches/5.2.x/units/private_message_body/private_message_body_config.php (.../private_message_body_config.php) (revision 14252) +++ branches/5.2.x/units/private_message_body/private_message_body_config.php (.../private_message_body_config.php) (revision 16384) @@ -1,6 +1,6 @@ 'private-message-body', - 'ItemClass' => Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class' => 'PrivateMessageBodyEventHandler', 'file' => 'private_message_body_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), - 'AutoLoad' => true, +$config = Array ( + 'Prefix' => 'private-message-body', + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'PrivateMessageBodyEventHandler', 'file' => 'private_message_body_eh.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), - 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 'AutoLoad' => true, - 'IDField' => 'PMBodyId', + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), - 'TitleField' => 'Subject', + 'IDField' => 'PMBodyId', - 'TableName' => TABLE_PREFIX.'PrivateMessageBody', + 'TitleField' => 'Subject', - 'ForeignKey' => 'PMBodyId', - 'ParentTableKey' => 'PMBodyId', - 'ParentPrefix' => 'private-message', - 'AutoDelete' => true, - 'AutoClone' => true, + 'TableName' => TABLE_PREFIX.'PrivateMessageBody', - 'ListSQLs' => Array ('' => ' SELECT %1$s.* %2$s FROM %1$s',), - 'ItemSQLs' => Array ('' => ' SELECT %1$s.* %2$s FROM %1$s',), + 'ForeignKey' => 'PMBodyId', + 'ParentTableKey' => 'PMBodyId', + 'ParentPrefix' => 'private-message', + 'AutoDelete' => true, + 'AutoClone' => true, - 'Fields' => Array ( - 'PMBodyId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Subject' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), - 'Body' => Array ('type' => 'string', 'default' => NULL), - 'Options' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ReferenceCount' => Array ('type' => 'int', 'not_null' => 1, 'default' => 2), - ), + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %1$s', + ), - 'VirtualFields' => Array ( - 'DisableBBCodes' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), - 'DisableSmileys' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), - 'ShowSignatures' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'default' => 1), - ), - ); \ No newline at end of file + 'Fields' => Array ( + 'PMBodyId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Subject' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), + 'Body' => Array ('type' => 'string', 'default' => NULL), + 'Options' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ReferenceCount' => Array ('type' => 'int', 'not_null' => 1, 'default' => 2), + ), + + 'VirtualFields' => Array ( + 'DisableBBCodes' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), + 'DisableSmileys' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), + 'ShowSignatures' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'default' => 1), + ), +); \ No newline at end of file