Projet

Général

Profil

Révision 6b24a280

Ajouté par Assos Assos il y a presque 4 ans

-a

Voir les différences:

drupal7/modules/field_ui/field_ui.module
265 265
 * Menu access callback for the 'view mode display settings' pages.
266 266
 */
267 267
function _field_ui_view_mode_menu_access($entity_type, $bundle, $view_mode, $access_callback) {
268
  // It's good practice to call func_get_args() at the beginning of a function
269
  // to avoid problems with function parameters being modified later. The
270
  // behavior of func_get_args() changed in PHP7.
271
  // @see https://www.php.net/manual/en/migration70.incompatible.php#migration70.incompatible.other.func-parameter-modified
272
  $all_args = func_get_args();
273

  
268 274
  // First, determine visibility according to the 'use custom display'
269 275
  // setting for the view mode.
270 276
  $bundle = field_extract_bundle($entity_type, $bundle);
......
275 281
  // part of _menu_check_access().
276 282
  if ($visibility) {
277 283
    // Grab the variable 'access arguments' part.
278
    $all_args = func_get_args();
279 284
    $args = array_slice($all_args, 4);
280 285
    $callback = empty($access_callback) ? 0 : trim($access_callback);
281 286
    if (is_numeric($callback)) {

Formats disponibles : Unified diff