function signature_forum_defaults in Signatures for Forums 5.2
Same name and namespace in other branches
- 5 signature_forum.module \signature_forum_defaults()
- 6 signature_forum.module \signature_forum_defaults()
Default signature settings.
8 calls to signature_forum_defaults()
- signature_forum_admin_settings in ./
signature_forum.module - Admin settings form.
- signature_forum_admin_settings_submit in ./
signature_forum.module - Admin settings form submit.
- signature_forum_comment in ./
signature_forum.module - Implementation of hook_comment().
- signature_forum_form_alter in ./
signature_forum.module - Implementation of hook_form_alter().
- signature_forum_get_signature in ./
signature_forum.module - Retrieve signature for a given user.
File
- ./
signature_forum.module, line 201 - Tweaks signatures in ways inspired by other traditional forum software:
Code
function signature_forum_defaults() {
return array(
'signature_forum_template' => "__________________\n<p>%s</p>",
'signature_forum_format' => FILTER_FORMAT_DEFAULT,
'signature_forum_line_limit' => 0,
'signature_forum_min_content_length' => 0,
'signature_forum_min_content_length_action' => MIN_CONTENT_ACTION_DO_NOT_DISPLAY,
'signature_forum_min_content_length_filter' => FILTER_FORMAT_DEFAULT,
'signature_forum_show_once_options' => SHOW_ONCE_OPTIONS_ALWAYS,
// Do not automatically insert signatures into nodes if Advanced Forum is
// installed (as AF does this in the theme layer).
'signature_forum_auto_insert' => module_exists('advanced_forum') ? FALSE : TRUE,
);
}