Help needed for coding a settings page for a pluggin

I want to do a simple Admin settings for pluggin in Elgg 1.8.1

things I want to add are

  • A drop down option menu for selecing YES/NO
  • A plain text area to Add a few discriptions

How the code should look like?

  • create a file called "edit.php" at the path <YourModule>/views/default/settings/<YourModule>/edit.php

    Code the form there, no need for a submit button, just code the inputs and text that you need.

    Set all of the input names to be "params[name]" where name will be the name of the plugin setting.

    Use $vars['entity']->name to retrieve that setting (to set the existing value for example)

    For a good example look at Ray J's spam login filter, he has both yes/no dropdowns and text areas on a settings page.