In smileys_admin_list() the code adds a <form> tag which is superfluous, as it should be added by drupal_render() (which is not the right function to call here, see #287674: Use drupal_render_form).
The HTML ID for the form can be added (even if I don't see the purpose on doing it) with a line like this:

  $form['#attributes'] = array('id' => 'smileys-admin-form');
CommentFileSizeAuthor
#4 fapi_admin_list.patch22.58 KBgilgabar

Comments

stokito’s picture

Ok thanks!

Gurpartap Singh’s picture

It isn't superfluous, rather we need to implement the whole interface using fapi, which currently isn't in use, scary? Have a patch?

Gurpartap Singh’s picture

Title: Remove the <form> tag » Convert the admin interface into a real form
gilgabar’s picture

Version: 6.x-1.0-alpha1 » 6.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new22.58 KB

Here is a patch. It reimplements the admin list page using FAPI and theme functions. It also drops some of the ajax stuff that was going on for saving weights and categories (the visibility ajax stuff is still there). From what I could see it was primarily trying to fake a normal form save using ajax, so now that it uses FAPI that shouldn't be necessary. And if for some reason ajax form submission were desired, form.js would be a better route anyway. It also moves the edit/delete commands to an operations column to be more consistent with standard drupal admin tables.

avpaderno’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

I am closing this issue since it's for a Drupal version that isn't supported.