| 1 |
<?php |
<?php |
| 2 |
// $Id: api.module,v 1.88.2.38 2009/10/04 23:05:51 drumm Exp $ |
// $Id: api.module,v 1.88.2.39 2009/10/04 23:10:34 drumm Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 499 |
), |
), |
| 500 |
'template' => 'templates/api-expandable', |
'template' => 'templates/api-expandable', |
| 501 |
), |
), |
| 502 |
|
'api_defined' => array( |
| 503 |
|
'arguments' => array( |
| 504 |
|
'object' => NULL, |
| 505 |
|
), |
| 506 |
|
'template' => 'templates/api-defined', |
| 507 |
|
), |
| 508 |
'api_related_topics' => array( |
'api_related_topics' => array( |
| 509 |
'arguments' => array( |
'arguments' => array( |
| 510 |
'topics' => array(), |
'topics' => array(), |
| 560 |
), |
), |
| 561 |
'api_group_page' => array( |
'api_group_page' => array( |
| 562 |
'arguments' => array( |
'arguments' => array( |
| 563 |
|
'group' => NULL, |
| 564 |
'documentation' => NULL, |
'documentation' => NULL, |
| 565 |
'constants' => NULL, |
'constants' => NULL, |
| 566 |
'globals' => NULL, |
'globals' => NULL, |
| 577 |
); |
); |
| 578 |
} |
} |
| 579 |
|
|
| 580 |
|
function api_preprocess_api_function_page(&$variables) { |
| 581 |
|
$variables['defined'] = theme('api_defined', $variables['function']); |
| 582 |
|
} |
| 583 |
|
|
| 584 |
|
function api_preprocess_api_constant_page(&$variables) { |
| 585 |
|
$variables['defined'] = theme('api_defined', $variables['constant']); |
| 586 |
|
} |
| 587 |
|
|
| 588 |
|
function api_preprocess_api_global_page(&$variables) { |
| 589 |
|
$variables['defined'] = theme('api_defined', $variables['global']); |
| 590 |
|
} |
| 591 |
|
|
| 592 |
|
function api_preprocess_api_group_page(&$variables) { |
| 593 |
|
$variables['defined'] = theme('api_defined', $variables['group']); |
| 594 |
|
} |
| 595 |
|
|
| 596 |
function api_init() { |
function api_init() { |
| 597 |
drupal_add_css(drupal_get_path('module', 'api') . '/jquery-autocomplete/jquery.autocomplete.css'); |
drupal_add_css(drupal_get_path('module', 'api') . '/jquery-autocomplete/jquery.autocomplete.css'); |
| 598 |
drupal_add_js(drupal_get_path('module', 'api') . '/jquery-autocomplete/jquery.autocomplete.js'); |
drupal_add_js(drupal_get_path('module', 'api') . '/jquery-autocomplete/jquery.autocomplete.js'); |
| 1327 |
$functions = theme('table', $header, $rows['function']); |
$functions = theme('table', $header, $rows['function']); |
| 1328 |
} |
} |
| 1329 |
|
|
| 1330 |
$output = theme('api_group_page', $documentation, $constants, $globals, $functions); |
$output = theme('api_group_page', $group, $documentation, $constants, $globals, $functions); |
| 1331 |
$output .= _api_add_comments($group); |
$output .= _api_add_comments($group); |
| 1332 |
return $output; |
return $output; |
| 1333 |
} |
} |