You are here

function my_service_preset in Service links 6.2

Same name and namespace in other branches
  1. 7.2 service_links.api.php \my_service_preset()

Example of preset function.

Parameters

$service: The service that is being used.

$settings: An array containing all the settings used.

$node: An object containt the current node.

File

./service_links.api.php, line 56
Provides documentation for the Service Links API.

Code

function my_service_preset(&$service, &$settings, $node = NULL) {
  $settings['tags']['new-tag'] = '<new-tag>';
  $settings['subst']['new-tag'] = check_plain(variable_get('some_variable', 'default'));
}