function arrange_fields_settings_form in Arrange Fields 6
Same name and namespace in other branches
- 7 arrange_fields.module \arrange_fields_settings_form()
This function returns a form which we will use to configure the arrange_fields module. It is called from menu item: admin/settings/arrange-fields/settings
Return value
array
1 string reference to 'arrange_fields_settings_form'
- arrange_fields_menu in ./
arrange_fields.module - Implementation of hook_menu().
File
- ./
arrange_fields.module, line 173
Code
function arrange_fields_settings_form() {
$form = array();
$form["arrange_fields_grid_width"] = array(
"#type" => "select",
"#title" => t("Grid width"),
"#options" => array(
1 => "1px",
5 => "5px",
10 => "10px (default)",
15 => "15px",
20 => "20px",
),
"#default_value" => variable_get("arrange_fields_grid_width", 10),
"#description" => t("This setting determines the spacing between elements on the grid (when arranging fields).\n For more free-form movement, set to 1px. More rigid, boxy movement, set to 20px.\n If you are unsure what to set, leave this at 10px."),
);
$form["arrange_fields_other_form_ids"] = array(
"#type" => "textarea",
"#title" => t("Additional form_id's"),
"#default_value" => variable_get("arrange_fields_other_form_ids", ""),
"#description" => t("Enter any additional form_id's you would like to be\n able to arrange, <strong>one per line</strong>. \n Be aware that\n this module (Arrange Fields) may not be able to\n arrange forms with complex structures. Also, form_ids that\n are longer than 100 characters are allowed, but may not work \n correctly if the first 100 characters are identical between two\n or more ids.\n <br>\n After you enter complete form_id's here and hit Save,\n you will be able to arrange them by clicking on them\n at the bottom of the ") . l("Arrange Fields admin settings page", "admin/settings/arrange-fields") . ".\n <br>\n " . t("Example:") . " <br>\n <strong>user_register</strong>\n <br>\n <strong>my_custom_form_id_1</strong>\n ",
);
return system_settings_form($form);
}