Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.24 KB

File metadata and controls

37 lines (24 loc) · 1.24 KB

Extension Hooks

[TOC]

pro_variables_post_save

mcp.pro_variables.php — Use this hook to perform extra processing after the values of the variables are saved, like clearing the cache. It doesn’t need to return anything. Afterwards, the user is redirected to the same page.

Arguments

  • $var_ids (array) — variable ids of the variables that were saved.
  • $skipped (array) — variable ids of the variables that were submitted but not saved.
    $this->EE->extensions->call('pro_variables_post_save', array_keys($vars), $skipped);

pro_variables_delete

mcp.pro_variables.php — Use this hook to perform extra processing just before variables are deleted.

Arguments

  • $var_ids (array) — variable ids of the variables that are about to be deleted.
    $this->EE->extensions->call('pro_variables_delete', $var_ids);