The Meta tags field set is present when editing an existing taxonomy term, but not when adding new terms.
$bool = (isset($form['tid']['#value']) &&
!isset($form_state['confirm_delete']) &&
!isset($form_state['confirm_parents'])
);
By removing the test for tid being set...
$bool = (
!isset($form_state['confirm_delete']) &&
!isset($form_state['confirm_parents'])
);
the form elements show on the term add form, and the meta content gets saved correctly in the db.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | new_tax_term_dev.patch | 450 bytes | jenlampton |
| new_tax_term.patch | 1.65 KB | jenlampton |
Comments
Comment #1
avpadernoPatches need to be built for the development snapshot.
Comment #2
avpadernoI have marked #701002: Unable to Add Meta Tags to Taxonomy Term as duplicate of this report.
Comment #3
jenlamptonokay. re-rolled against dev branch.
Comment #4
Anonymous (not verified) commentedI also changed the code to avoid a warning about the access to a not existing array index.
I changed the code on the local copy, and I will commit the code once I am done with other changes.
Comment #5
Anonymous (not verified) commentedThe code has been committed; thanks for your report.
As usual, read what reported in the project page, before to update the installed modules.