Project:Modal forms (with ctools)
Version:7.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi,

I did not find any support until now for the node add forms, so I created a small module that does that. I didn't create a separate project for it because maybe it makes sense to integrate this directly in the Modal forms module, otherwise I can create a full project. The module provides settings per content type, so you can choose for which content types you want to have modal forms (and only for add forms, not for edit, at the moment).

Vasi.

AttachmentSize
modal_forms_nodes.zip3.54 KB

Comments

#1

This is brilliant! This should definitely be committed to the Modal Forms module.

#2

+1 for this to be integrated. Node edit forms would be a bonus.

#3

Fresh D7.22, default installation.

Almost works. But the image upload gives an error:

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'node_form' was given in drupal_retrieve_form() (line 798 of /www/d7/includes/form.inc).

Notice: Undefined index: #node in comment_form_node_form_alter() (line 1206 of /www/d7/modules/comment/comment.module).

Notice: Trying to get property of non-object in comment_form_node_form_alter() (line 1223 of /www/d7/modules/comment/comment.module).

Notice: Undefined index: #node in menu_form_node_form_alter() (line 629 of /www/d7/modules/menu/menu.module).

Notice: Trying to get property of non-object in menu_form_node_form_alter() (line 629 of /www/d7/modules/menu/menu.module).

Notice: Undefined index: #node in menu_form_node_form_alter() (line 630 of /www/d7/modules/menu/menu.module).

Notice: Trying to get property of non-object in menu_form_node_form_alter() (line 630 of /www/d7/modules/menu/menu.module).

Notice: Undefined index: field_image in file_ajax_upload() (line 271 of /www/d7/modules/file/file.module).

Notice: Undefined index: #suffix in file_ajax_upload() (line 280 of /www/d7/modules/file/file.module).

#4

1) What needs to be done to get the edit form working?

2) How could this work with the entity ref prepopulate module?

nobody click here