function linkit_insert_plugin_process in Linkit 7.3
Provide defaults for insert plugins.
1 string reference to 'linkit_insert_plugin_process'
- linkit_ctools_plugin_type in ./
linkit.module - Implements hook_ctools_plugin_TYPE() to inform the plugin system that Linkit owns Linkit plugin types.
File
- ./
linkit.module, line 106 - Main file for Linkit module.
Code
function linkit_insert_plugin_process(&$plugin, $info) {
// The plugin javascript can be just a filename or a full path,
// in case it's just a filename, add the plugin path.
if (!file_exists($plugin['javascript'])) {
$plugin['javascript'] = $plugin['path'] . '/' . $plugin['javascript'];
}
}