
Update commons modules to release 7.12, and move the codebase under modules/commons instead of constant fetching from remote repository. The commons.make file removed so it is not required to rebuild groups distribution. Change-Id: I3be393ba1af34427e2915b18ab1ad718fd4e54db
112 lines
3.9 KiB
PHP
112 lines
3.9 KiB
PHP
<?php
|
|
/**
|
|
* @file
|
|
* commons_profile_base.strongarm.inc
|
|
*/
|
|
|
|
/**
|
|
* Implements hook_strongarm().
|
|
*/
|
|
function commons_profile_base_strongarm() {
|
|
$export = array();
|
|
|
|
$strongarm = new stdClass();
|
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
|
$strongarm->api_version = 1;
|
|
$strongarm->name = 'realname_pattern';
|
|
$strongarm->value = '[user:field-name-first] [user:field-name-last]';
|
|
$export['realname_pattern'] = $strongarm;
|
|
|
|
$strongarm = new stdClass();
|
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
|
$strongarm->api_version = 1;
|
|
$strongarm->name = 'user_mail_register_admin_created_body';
|
|
$strongarm->value = '[user:name],
|
|
|
|
A site administrator at [site:name] has created an account for you. You may now log in by clicking this link or copying and pasting it to your browser:
|
|
|
|
[user:one-time-login-url]
|
|
|
|
This link can only be used once to log in and will lead you to a page where you can set your password.
|
|
|
|
After setting your password, you will be able to log in at [site:login-url] in the future using:
|
|
|
|
username: [user:name]
|
|
password: Your password
|
|
|
|
-- [site:name] team';
|
|
$export['user_mail_register_admin_created_body'] = $strongarm;
|
|
|
|
$strongarm = new stdClass();
|
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
|
$strongarm->api_version = 1;
|
|
$strongarm->name = 'user_mail_register_no_approval_required_body';
|
|
$strongarm->value = '[user:name],
|
|
|
|
Thank you for registering at [site:name]. You may now log in by clicking this link or copying and pasting it to your browser:
|
|
|
|
[user:one-time-login-url]
|
|
|
|
This link can only be used once to log in and will lead you to a page where you can set your password.
|
|
|
|
After setting your password, you will be able to log in at [site:login-url] in the future using:
|
|
|
|
username: [user:name]
|
|
password: Your password
|
|
|
|
-- [site:name] team';
|
|
$export['user_mail_register_no_approval_required_body'] = $strongarm;
|
|
|
|
$strongarm = new stdClass();
|
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
|
$strongarm->api_version = 1;
|
|
$strongarm->name = 'user_mail_status_activated_body';
|
|
$strongarm->value = '[user:name],
|
|
|
|
Your account at [site:name] has been activated.
|
|
|
|
You may now log in by clicking this link or copying and pasting it into your browser:
|
|
|
|
[user:one-time-login-url]
|
|
|
|
This link can only be used once to log in and will lead you to a page where you can set your password.
|
|
|
|
After setting your password, you will be able to log in at [site:login-url] in the future using:
|
|
|
|
username: [user:name]
|
|
password: Your password
|
|
|
|
-- [site:name] team';
|
|
$export['user_mail_status_activated_body'] = $strongarm;
|
|
|
|
$strongarm = new stdClass();
|
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
|
$strongarm->api_version = 1;
|
|
$strongarm->name = 'user_pictures';
|
|
$strongarm->value = '1';
|
|
$export['user_pictures'] = $strongarm;
|
|
|
|
$strongarm = new stdClass();
|
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
|
$strongarm->api_version = 1;
|
|
$strongarm->name = 'user_picture_dimensions';
|
|
$strongarm->value = '1024x1024';
|
|
$export['user_picture_dimensions'] = $strongarm;
|
|
|
|
$strongarm = new stdClass();
|
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
|
$strongarm->api_version = 1;
|
|
$strongarm->name = 'user_picture_file_size';
|
|
$strongarm->value = '800';
|
|
$export['user_picture_file_size'] = $strongarm;
|
|
|
|
$strongarm = new stdClass();
|
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
|
$strongarm->api_version = 1;
|
|
$strongarm->name = 'user_picture_style';
|
|
$strongarm->value = 'thumbnail';
|
|
$export['user_picture_style'] = $strongarm;
|
|
|
|
return $export;
|
|
}
|