Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Experimental project
This is a sandbox project, which contains experimental code for developer use only.
Background Information
When logged in as the administrator, the "Site Information" form can be found at the path /admin/config/system/site-information.
This module needs to alter the existing Drupal "Site Information" form.
Specifics:
- A new form text field named "Site Unique Key" needs to be added to the "Site Information" form with the default value of “No Unique Key yet”.
- When this form is submitted, the value that the user entered for this field should be saved as the system variable named "siteuniquekey".
- A Drupal message should inform the user that the "Site Unique Key" has been saved with that value.
- When this form is visited after the "Site Unique Key" is saved, the field should be populated with the correct value.
- The text of the "Save configuration" button should change to "Update Configuration".
- This module also provides a URL that responds with a JSON representation of a given node with the content type "Product" only if the previously submitted API Key and a node id (nid) of an appropriate node are present, otherwise it will respond with "access denied".
Example URL:
http://example.com/product_json/siteuniquekey/node_id
URL is look like this : http://example.com/product_json/FooBar321/3
Project information
- Maintenance fixes only
Considered feature-complete by its maintainers. - Created by rahul_sankrit on , updated