Projet

Général

Profil

Révision 6ff32cea

Ajouté par Florent Torregrosa il y a environ 9 ans

Update core to 7.36

Voir les différences:

drupal7/modules/simpletest/tests/theme_test.module
53 53
    'access callback' => TRUE,
54 54
    'type' => MENU_CALLBACK,
55 55
  );
56
  $items['theme-test/drupal-add-region-content'] = array(
57
    'page callback' => '_theme_test_drupal_add_region_content',
58
    'access callback' => TRUE,
59
    'type' => MENU_CALLBACK,
60
  );
56 61
  return $items;
57 62
}
58 63

  
......
126 131
  return theme(array('theme_test__suggestion', 'theme_test'), array());
127 132
}
128 133

  
134
/**
135
 * Page callback, calls drupal_add_region_content.
136
 */
137
function _theme_test_drupal_add_region_content() {
138
  drupal_add_region_content('content', 'World');
139
  return 'Hello';
140
}
141

  
129 142
/**
130 143
 * Theme function for testing theme('theme_test_foo').
131 144
 */

Formats disponibles : Unified diff