Check if the site allows new user registration In Drupal 7, on my frontpage custom template, i want to show a text if the site is allowing new users to register.
Any clues?
Thanks
In a preprocess function for your template, add code something like:

$variables['is_registration_open'] = variable_get('user_register') == USER_REGISTER_VISITORS;


Then in your template:

&lt;?php if ($is_registration_open) : ?&gt;
&lt;h3&gt;Registration is open!&lt;/h3&gt;
&lt;?php endif; ?&gt;