You are here

function example_toggle in Fasttoggle 7

Called when a link has been invoked, updating the value of a setting.

Parameters

string $type: The type of object being handled.

object $obj: An instance of the object that has been modified, as saved.

string $group: The group to which the setting being modified belongs.

string $instance: The setting which was toggled.

File

./fasttoggle.api.php, line 201
Hooks provided by the Fasttoggle module.

Code

function example_toggle($type, $obj, $group, $instance) {
  drupal_set_message("The {$instance} {$group} setting in a {$type} has been modified.");
}