Commit 86d8e5fb authored by Dave Reid's avatar Dave Reid
Browse files

by Dave Reid: Added docs for realname.admin.inc.

parent a7b703f0
<?php <?php
/**
* Form builder; display the realname settings form.
*
* @see realname_settings_form_submit()
*/
function realname_settings_form($form, &$form_state) { function realname_settings_form($form, &$form_state) {
$form['realname_pattern'] = array( $form['realname_pattern'] = array(
'#type' => 'textfield', '#type' => 'textfield',
...@@ -22,6 +27,11 @@ function realname_settings_form($form, &$form_state) { ...@@ -22,6 +27,11 @@ function realname_settings_form($form, &$form_state) {
return system_settings_form($form); return system_settings_form($form);
} }
/**
* Form submit handler for the realname settings form.
*
* @see realname_settings_form().
*/
function realname_settings_form_submit($form, $form_state) { function realname_settings_form_submit($form, $form_state) {
if ($form['realname_pattern']['#default_value'] != $form_state['values']['realname_pattern']) { if ($form['realname_pattern']['#default_value'] != $form_state['values']['realname_pattern']) {
// Only clear the realname cache if the pattern was changed. // Only clear the realname cache if the pattern was changed.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment