![]() ![]() I've always been pretty responsive to questions when people want to use the APIs, and that's how the documentation gets written and/or improved. That does not change the fact that features is assuming it should be there.Īlso, running into API issues after the fact and blaming me rather than asking questions during the fact doesn't really help anyone. Now, I may just add the api key to stylizer anyway and create a default_styles.inc because it's friendly. See ctools_export_to_hook_code() to see how CTools' export does it. If there is no 'api' key, then features should assume that there are no api restrictions and that there won't be a file to put the hook_* in. Why is this 'needs review'? There is no patch. ![]() So if possible, the two communities need to talk to each other to resolve this. My sense looking through this is that this is a difficult issue for even most developers to fix, and it affects the perceived usability of both CTools and Features. This bug has been bouncing around for a while (I see versions of it up to a year old), so it would be good either if Earl or one of the other committers on CTools suggest to the Features people how best to handle the case where the key is absent, or the features people need to say that in order to support features, the bare CTools specification does not suffice, and simply say that modules like Stylizer are non-compliant. My 2¢ here: while 'api' may not be a required key from the perspective of ctools generally, it sounds like in this case it needs to be required for Features and CTools to work well together. Notice: Undefined index: default_filename in features_export_render() (line 196 of /home/rtoren/Torenware/Website/tfc-student-info/docs/sites/all/modules/features/).īe things as they way, the patch at appears to resolve this issue.Notice: Undefined index: api in ctools_features_export_render() (line 84 of /home/rtoren/Torenware/Website/tfc-student-info/docs/sites/all/modules/features/includes/).Notice: Undefined index: current_version in ctools_features_export_render() (line 80 of /home/rtoren/Torenware/Website/tfc-student-info/docs/sites/all/modules/features/includes/).Notice: Undefined index: api in ctools_features_export_render() (line 79 of /home/rtoren/Torenware/Website/tfc-student-info/docs/sites/all/modules/features/includes/).Notice: Undefined index: current_version in _ctools_features_get_info() (line 256 of /home/rtoren/Torenware/Website/tfc-student-info/docs/sites/all/modules/features/includes/).Notice: Undefined index: api in _ctools_features_get_info() (line 256 of /home/rtoren/Torenware/Website/tfc-student-info/docs/sites/all/modules/features/includes/).Notice: Undefined index: current_version in ctools_features_export() (line 56 of /home/rtoren/Torenware/Website/tfc-student-info/docs/sites/all/modules/features/includes/).Notice: Undefined index: api in ctools_features_export() (line 56 of /home/rtoren/Torenware/Website/tfc-student-info/docs/sites/all/modules/features/includes/).Again, since this is on the border between CTools and Features, it's hard to tell where I need to check: 'export callback' => 'stylizer_style_export',īTW: are there docs for the export API in the current ctools? I can't find any, which is making it harder for me to figure out where the problem is occurring. The problem I'm having is very specific to Stylizer, and looking at some of the data structures in the debugger, I'm guessing that the 'export' section in stylizer.install is probably not updated for the current version of the export API: 'export' => array( ![]() This consistently fails with multiple "missing index" errors, and the archive generated in features contains files with malformed names (hook_default_stylizer() is put in a file called FEATURE_NAME.inc), and at least one file which is not valid PHP (in this case, FEATURE_. I'm trying to create a feature via Features 7.x-1.0-beta3 that exports a Stylizer style.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |