Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293138

Non-standard indentation on user_register_form()

$
0
0

The following piece of code does not follow the Coding Standards for indentation.

<?php
function user_register_form($form, &$form_state) {
  global
$user;

 
$admin = user_access('administer users');

 
// Pass access information to the submit handler. Running an access check
  // inside the submit function interferes with form processing and breaks
  // hook_form_alter().
 
$form['administer_users'] = array(
    
'#type'=> 'value',
    
'#value'=> $admin,
  );
?>

Viewing all articles
Browse latest Browse all 293138

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>