The code inside pathauto_form_alter() for adding all its fields to the node's path fieldset should be abstracted to work for any entity. That way we can re-use it on taxonomy term forms.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 752034-pathauto-field-attach-form.patch | 14.76 KB | dave reid |
| #3 | 752034-pathauto-field-attach-form.patch | 7.48 KB | dave reid |
| #2 | 752034-pathauto-field-attach-form.patch | 7.47 KB | dave reid |
| #1 | 752034-pathauto-entity-form-D7.patch | 6.84 KB | dave reid |
Comments
Comment #1
dave reidHere's how it would look in patch and the simplified way to add the 'Automatic URL alias' settings to an individual entity's form.
Comment #2
dave reidNew patch using pathauto_field_attach_form() but calling it from form_alters since hook_field_attach_form() runs before any path module alters.
Comment #3
dave reidComment #4
dave reidWith tests.
Comment #5
dave reidCommitted to Git: http://drupalcode.org/project/pathauto.git/commit/43319d7