You are here

function button_field_ajax_command_location in Button Field 7

Creates a Drupal Ajax buttonFieldLocation command.

Parameters

string $url: New location for the page

1 call to button_field_ajax_command_location()
_button_field_ajax_response in ./button_field.module
Builds the response for an ajax callback.

File

./button_field.module, line 67
Defines a field, widget and formatter for the button field type.

Code

function button_field_ajax_command_location($url) {
  return array(
    'command' => 'buttonFieldLocation',
    'url' => $url,
  );
}