Closed (outdated)
Project:
Site verification
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2011 at 10:53 UTC
Updated:
12 Jan 2025 at 01:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jdleonardI am also interested in this feature. Thanks!
Comment #2
tobias.grasse commentedCount me in.
Comment #3
decipheredI've begun work on this and will supply a patch ASAP.
It is being done using CTools with the CTools Export UI which means it isn't a minor task, but it's really the only logical way to do it.
Comment #4
decipheredPatch attached (sponsored by CustomFormatters.com).
The only thing that currently isn't working is the 'Delete' portion of the simpletest, all the functionality works as expected and an upgrade path is included.
Comment #5
decipheredOops, helps if I attach the patch...
Comment #6
decipheredUpdated patch for a minor issue with the disabled status flag.
Comment #7
indytechcook commentedThe features integration works fine and so does the UI. I didn't do tons of testing so I can't mark RTBC but it probably is.
@deciphered, for future reference, you can have ctools exportables without using the ctools exportables UI. Great work!
Comment #8
decipheredI'm aware of that, but CTools Export UI means we don't have to re-invent the wheel, so why not take advantage of it.
Comment #9
decipheredAs per #2136309: Upgrade path issue, which I accidentally opened not identifying this patch as the issue, the upgrade path needs work. Which this patch does.
Comment #10
joachim commentedPatch looks very comprehensive -- tests too! :)
But also huge and scary, especially as I'm a temporary maintainer who's not familiar with the module code. So probably not one for me to deal with, sorry.
I think this is going to clash with #696436: Use File API and file_transfer(). In particular, am I right in guessing that when you upload a file to be a verification file, its contents get put into the table? That's completely at odds with what #696436: Use File API and file_transfer() is seeking to do -- and furthermore, using File API would actively prevent verification items from being exportable! So there's a question to be resolved about the direction this module should take. Which again, is not one for me, sorry!
Here's a review with a few things that need work:
Could we have comments here to explain what the ajax does? When I select an engine, I just get the AJAX spinner and then the exact same form comes back.
This needs documenting.
Comment and code do not agree.
This hook_update_N() is numbered incorrectly. It should be 7001.
Quite a few of these unrelated whitespace changes in this patch.
Comment #11
realityloop commentedRerolled for current dev version
Comment #12
netw3rker commented@realityloop,
I tried this patch & it blew away my ability to get back to http://example.com/admin/config/search/verifications is that by design? If so, what's the new admin URL?
Comment #13
netw3rker commentedIn reviewing the work from @realityloop's patch, it looks to be a pretty extensive overhaul of the site_verify module in order to support the full ctools exportables framework. This might be overkill for what's need in order to meet the goals of the issue (specifically: providing features support for this module).
I've gone ahead and implemented the specific code required just for features support. this involves simply adding the export value to the db_schema, and then implementing the features_render and features_revert hooks.
The only downside to the attached patch is that it relies on "engine" as the key name, so you can't have more than one verification with the exact same engine name. That should be resolvable with the "custom" option though.
Anyhow, sorry @realityloop for the competing patch option, but this much less impactful to the current versions of the module.
Comment #14
netw3rker commentedTurns out a machine name is kinda important to the function of this :). I've added a machine name field, and an update hook to populate it. the default machine name for existing entries will be [engine]_[svid]. that can be change before export in the UI by editing the machine name.
Comment #15
carolpettirossi commented#13 works for me.
#14 does not work.
Comment #16
realityloop commented@netw3rker. I was just re-rolling an earlier patch.. no harm or foul. :)
Comment #17
elc commentedThe first set of patches in there completely replaces the admin ui with ctools, which would add a dependency to an otherwise lightweight module just before D7 EOL. If it was looked at 12 years ago, it would be part of it but there's no point making such a huge change now.
The second set of patches implement the features ctools export part, seem incomplete, but would be a way to get this done, however the requirement and functionality of the export should be offloaded to a sub-module "site_verify_ctools" which when enabled would abuse the hook naming possibilities to provide the parent module's hooks. The aim of the trickery would be allow site_verify to continue on without a hard ctools dependency. 2 months out from D7 EOL.
Postponing unless someone is really keen to work through making this feature.
For Drupal 10/11 see #3008860: Use ConfigEntityType for exportable SiteVerification storage.
Comment #18
elc commentedDrupal 7 is no longer a supported release.
There is a Backdrop port: https://backdropcms.org/project/site_verify