8ac59801be
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
41 lines
1.3 KiB
PHP
41 lines
1.3 KiB
PHP
<?php
|
|
|
|
/**
|
|
* @file
|
|
* Variables for the Commons Site Homepage module.
|
|
*/
|
|
|
|
/**
|
|
* Implements hook_variable_group_info().
|
|
*/
|
|
function commons_site_homepage_variable_group_info() {
|
|
$groups['commons_site_homepage'] = array(
|
|
'title' => t('Commons Site Homepage'),
|
|
'description' => t("Text that will be shown on your community's homepage to help new visitors understand what your community is about and why they should join."),
|
|
);
|
|
|
|
return $groups;
|
|
}
|
|
|
|
/**
|
|
* Implements hook_variable_info().
|
|
*/
|
|
function commons_site_homepage_variable_info($options) {
|
|
$variable['commons_anonymous_welcome_title'] = array(
|
|
'type' => 'string',
|
|
'title' => t('Welcome headline', array(), $options),
|
|
'description' => t('A short description of the community that visitors can understand at a glance.'),
|
|
'default' => 'The open-source alternative for enterprise-scale business software',
|
|
'group' => 'commons_site_homepage',
|
|
);
|
|
$variable['commons_anonymous_welcome_body'] = array(
|
|
'type' => 'string',
|
|
'title' => t('Welcome body text', array(), $options),
|
|
'description' => t('A couple of sentences elaborating about your community.'),
|
|
'default' => 'Enable social networking to create productive interactions. Whether your community is public or private, Commons does it!',
|
|
'group' => 'commons_site_homepage',
|
|
);
|
|
|
|
return $variable;
|
|
}
|