You are here

function _ip_geoloc_plugin_style_refresh_color_table_js in IP Geolocation Views & Maps 8

Same name and namespace in other branches
  1. 7 views/ip_geoloc_plugin_style.inc \_ip_geoloc_plugin_style_refresh_color_table_js()

Ajax callback in response to new rows or the diff. drop-down being changed.

At this point the $form has already been rebuilt. All we have to do here is tell AJAX what part of the browser form needs to be updated.

1 string reference to '_ip_geoloc_plugin_style_refresh_color_table_js'
ip_geoloc_plugin_style_bulk_of_form in src/Plugin/views/style/ip_geoloc_plugin_style.inc
The bulk of the plugin style form.

File

src/Plugin/views/style/ip_geoloc_plugin_style.inc, line 300
ip_geoloc_plugin_style.inc

Code

function _ip_geoloc_plugin_style_refresh_color_table_js($form, FormStateInterface &$form_state) {

  // Return the updated table, so that ajax.inc can issue commands to the
  // browser to update only the targeted sections of the page.
  return $form['options']['style_options']['differentiator'];
}