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.
Problem/Motivation
There might be needs to use different endpoint for specific case.
For example, while developing, several branches are used for various environment, and it is annoying to change remote URL every time for each environment.
Steps to reproduce
Proposed resolution
Provide new hook where developers can change the endpoint URL.
hook_content_remote_options_endpoint_alter()
is available.
Usage:
function yourmodule_online_base_content_remote_options__options_alter (&$variables, $context) {
// TO DO
}
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#7 | content-remote-options--3365613-hook-to-alter-options-1.1.x-v2.0.patch | 1.53 KB | Austin986 |
Issue fork content_remote_options-3365613
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
Austin986 CreditAttribution: Austin986 as a volunteer commentedPatch created to provide a new hook
Comment #3
Austin986 CreditAttribution: Austin986 as a volunteer commentedPatch for 1.1.x
Comment #7
Austin986 CreditAttribution: Austin986 as a volunteer commentedContext variable is now added.
function yourmodule_online_base_content_remote_options__options_alter (&$variables, $context) {
// TO DO
}
Comment #8
Austin986 CreditAttribution: Austin986 as a volunteer commentedComment #9
Austin986 CreditAttribution: Austin986 as a volunteer commentedComment #10
nsalves CreditAttribution: nsalves at NTT DATA commentedHey Austin986, thank you for the feedback
Added a hook on the newest release
Comment #11
nsalves CreditAttribution: nsalves at NTT DATA commented