CityWebConsultants / Iris

Modular content management and web application framework built with Node.js and MongoDB
http://irisjs.org
Other
9 stars 7 forks source link

Recursively adds 'form' attributes to fields within fieldsets #175

Closed adam-clarey closed 8 years ago

adam-clarey commented 8 years ago

I also added a form.settingsOverride flag to be used in hook_form_render__field_settings__[fieldname]

If you add

form.settingsOverride = true;

To the hook above, it will prevent the system from automatically adding

form.form.push("settings");

I needed this as in my hook I was added the settings to 'form' array as an object, such as:

 data.form.push({
      "key": "settings." + schema,
      "htmlClass" : "choose-fields " + extraClass
    });

Overriding 'form.form.push("settings");' means the fields wont be added twice.

I also added a 'regex' operator the entity queries so now you can do more complex searching.