function hook_freelinking in Freelinking 7.3
Same name and namespace in other branches
- 6.3 freelinking.api.php \hook_freelinking()
Used to define plugins or add new values to plugins.
For more on creating or modifying plugins, see help file "creating-plugins.html".
2 functions implement hook_freelinking()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- freelinking_freelinking in ./
freelinking.module - Implements hook_freelinking().
- freelinking_prepopulate_freelinking in modules/
freelinking_prepopulate/ freelinking_prepopulate.module - @todo Please document this function.
1 invocation of hook_freelinking()
- freelinking_get_plugins in ./
freelinking.utilities.inc - Invoke hook_freelinking() to validate & sort available FL plugins.
File
- ./
freelinking.api.php, line 13 - API documentation for Freelinking.
Code
function hook_freelinking() {
$plugins['myplugin'] = array(
'indicator' => '/myplugin/',
'translate' => array(
' ' => '_',
),
'replacement' => 'http://example.com/node/%1',
);
return $plugins;
}