/[drupal]/contributions/modules/api/api.module
ViewVC logotype

Diff of /contributions/modules/api/api.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.88.2.39 by drumm, Sun Oct 4 23:10:34 2009 UTC revision 1.88.2.40 by drumm, Thu Oct 8 06:07:46 2009 UTC
# Line 1  Line 1 
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
# Line 499  function api_theme() { Line 499  function api_theme() {
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(),
# Line 554  function api_theme() { Line 560  function api_theme() {
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,
# Line 570  function api_theme() { Line 577  function api_theme() {
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');
# Line 1304  function api_page_group($group) { Line 1327  function api_page_group($group) {
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  }  }

Legend:
Removed from v.1.88.2.39  
changed lines
  Added in v.1.88.2.40

  ViewVC Help
Powered by ViewVC 1.1.3