You are here

function _uc_country_perform_country_action in Ubercart 7.3

Same name and namespace in other branches
  1. 6.2 uc_store/uc_store.admin.inc \_uc_country_perform_country_action()

Performs country actions after validating the CSRF-prevention token.

Parameters

$function: The function name to run.

$param: Parameter to pass to the function specified.

$param2: (optional) Parameter to pass to the function specified.

1 string reference to '_uc_country_perform_country_action'
uc_store_menu in uc_store/uc_store.module
Implements hook_menu().

File

uc_store/uc_store.countries.inc, line 434
Store administration forms for country and address handling.

Code

function _uc_country_perform_country_action($function, $param, $param2 = NULL) {
  if (isset($_GET['token']) && drupal_valid_token($_GET['token'], 'uc_country_op_link')) {
    call_user_func($function, $param, $param2);
  }
  else {
    return MENU_ACCESS_DENIED;
  }
}