| 1 |
<?php
|
| 2 |
// $Id: inline.module,v 1.35 2009/01/28 21:43:05 sun Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* Inline API documentation.
|
| 7 |
*/
|
| 8 |
|
| 9 |
/**
|
| 10 |
* Implementation of hook_inline_info().
|
| 11 |
*
|
| 12 |
* @return
|
| 13 |
* An associative array of inline tags provided by this module, keyed by tag
|
| 14 |
* name with the following properties:
|
| 15 |
* - callback: (optional) The inline callback function name. Defaults to
|
| 16 |
* MODULENAME_TAGNAME_inline().
|
| 17 |
* - file: (optional) The include file where callback function resides.
|
| 18 |
* - path: (optional) The path of the include file. Defaults to the module's
|
| 19 |
* directory.
|
| 20 |
*/
|
| 21 |
function hook_inline_info() {
|
| 22 |
$info['node'] = array(
|
| 23 |
'file' => 'inline.node.inc',
|
| 24 |
);
|
| 25 |
if (module_exists('upload')) {
|
| 26 |
$info['upload'] = array(
|
| 27 |
'file' => 'inline.upload.inc',
|
| 28 |
);
|
| 29 |
}
|
| 30 |
return $info;
|
| 31 |
}
|
| 32 |
|