Closed (fixed)
Project:
Vertical Tabs
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
17 Jun 2009 at 11:12 UTC
Updated:
2 Apr 2012 at 22:58 UTC
Jump to comment: Most recent file
If the "Vertical Tabs" module is enabled, content types can't be imported with the setting "Content Type: create"
The following error message is outputted:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'brand_node_form' was given in /nfs/c02/h04/mnt/46842/domains/acuity.ch/html/clients/designundton/beta_v2/includes/form.inc on line 366.
An illegal choice has been detected. Please contact the site administrator.
See also: http://drupal.org/node/494016
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | export_data.txt | 5.82 KB | CarbonPig |
| #1 | vertical_tabs.patch | 706 bytes | karens |
Comments
Comment #1
karens commentedI ran into this to and it is also a problem in install profiles and anywhere else that anyone uses drupal_execute() on the content_type form as a method to programmatically create a content type. The fix is for vertical tabs to leave that form alone if it is a programmed form. This simple fix should take care of that.
Comment #2
dmitrig01 commentedI'm about to go offline for a few days, so I can't commit this, but it's ready.
Comment #3
dmitrig01 commentedAlso, to whoever commits this, please test and then roll a release
Comment #4
dave reidI can get to this tomorrow.
Comment #5
dave reidTested and committed this patch to 6.x-1.x. Do we get errors with programmed node forms as well?
Comment #6
karens commentedThe same issue should apply, but I'm not using programmed node forms anywhere to test it. You could try it out by creating a node and trying to store it using drupal_execute(). It's probably safe to just assume that Vertical tabs should never do anything with any programmed form.
The node_type form is especially important because it's used by lots of modules to auto-create content types in install profiles and installation scripts, and that is now fixed :)
Comment #7
CarbonPig commentedHi,
I'm using vertical tabs and when I export fields and then try and import them into a new content type (i.e. "create") I get the error: The import data is not valid import text.
I have attached my export text for review.
Is this the same issue you're trying to solve?
Hopefully this helps, or someone can point me in the right direction.
Cheers,
CarbonPig
Comment #8
CarbonPig commentedOpening
Comment #9
dave reidComment #10
dave reidMarked #605288: Export content type definitions from cck export function doesn't work as a duplicate of this issue.
Comment #11
dave reidMarked #481118: Errors when importing content type as a duplicate of this as well.
Comment #12
dave reidOk this should be fixed for any forms using vertical tabs now. I changed the logic of vertical_tabs_form_alter():
We could possibly move this somehow to vertical_tabs_add_vertical_tabs as well down the road. I'm going to consider this fixed now.