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

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Austin986 created an issue. See original summary.

Austin986’s picture

Patch created to provide a new hook

function yourmodule_online_base_content_remote_options__options_alter (&$variables) {
  // TO DO
}
Austin986’s picture

Austin986’s picture

Context variable is now added.

function yourmodule_online_base_content_remote_options__options_alter (&$variables, $context) {
// TO DO
}

Austin986’s picture

Austin986’s picture

Issue summary: View changes
nsalves’s picture

Hey Austin986, thank you for the feedback
Added a hook on the newest release

nsalves’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.