SmartThingsCommunity/Documentation — pull request #16 by sudarkoff (2014-08-18 18:45:06+00:00)
Title: Whenever Dynamic Preferences are used in a SmartApp, the section for label and mode is not added to the app's preferences automatically. This change add that section to the example code.

Initially I was going to call this a bug and file a ticket, but
seeing how even the official apps add the section manually, I think
at the very least this behavior needs to be documented.