Projet

Général

Profil

Révision c9e51f47

Ajouté par Julien Enselme il y a environ 7 ans

Udpate to 7.54

Voir les différences:

drupal7/modules/simpletest/tests/theme_test.module
27 27
  $themes['test_theme'] = drupal_get_path('module', 'theme_test') . '/themes/test_theme/test_theme.info';
28 28
  $themes['test_basetheme'] = drupal_get_path('module', 'theme_test') . '/themes/test_basetheme/test_basetheme.info';
29 29
  $themes['test_subtheme'] = drupal_get_path('module', 'theme_test') . '/themes/test_subtheme/test_subtheme.info';
30
  $themes['test_theme_nyan_cat'] = drupal_get_path('module', 'theme_test') . '/themes/test_theme_nyan_cat/test_theme_nyan_cat.info';
30 31
  return $themes;
31 32
}
32 33

  
34
/**
35
 * Implements hook_system_theme_engine_info().
36
 */
37
function theme_test_system_theme_engine_info() {
38
  $theme_engines['nyan_cat'] = drupal_get_path('module', 'theme_test') . '/themes/engines/nyan_cat/nyan_cat.engine';
39
  return $theme_engines;
40
}
41

  
33 42
/**
34 43
 * Implements hook_menu().
35 44
 */
......
58 67
    'access callback' => TRUE,
59 68
    'type' => MENU_CALLBACK,
60 69
  );
70
  $items['theme-test/engine-info-test'] = array(
71
    'description' => "Serves a simple page rendered using a Nyan Cat theme engine template.",
72
    'page callback' => '_theme_test_engine_info_test',
73
    'access callback' => TRUE,
74
    'type' => MENU_CALLBACK,
75
  );
61 76
  return $items;
62 77
}
63 78

  
......
139 154
  return 'Hello';
140 155
}
141 156

  
157
/**
158
 * Serves a simple page renderered using a Nyan Cat theme engine template.
159
 */
160
function _theme_test_engine_info_test() {
161
  return array(
162
    '#markup' => theme('theme_test_template_test'),
163
  );
164
}
165

  
142 166
/**
143 167
 * Theme function for testing theme('theme_test_foo').
144 168
 */

Formats disponibles : Unified diff