contact group is now 'channel group'
This commit is contained in:
parent
fb8b44f1b2
commit
e29618ee0d
@ -267,10 +267,10 @@ function group_side($every="contacts",$each="group",$edit = false, $group_id = 0
|
||||
|
||||
$tpl = get_markup_template("group_side.tpl");
|
||||
$o = replace_macros($tpl, array(
|
||||
'$title' => t('Contact Groups'),
|
||||
'$edittext' => t('Edit contact group'),
|
||||
'$createtext' => t('Create a new contact group'),
|
||||
'$ungrouped' => (($every === 'contacts') ? t('Contacts not in any contact group') : ''),
|
||||
'$title' => t('Channel Groups'),
|
||||
'$edittext' => t('Edit channel group'),
|
||||
'$createtext' => t('Create a new channel group'),
|
||||
'$ungrouped' => (($every === 'contacts') ? t('Channels not in any group') : ''),
|
||||
'$groups' => $groups,
|
||||
'$add' => t('add'),
|
||||
));
|
||||
|
@ -44,7 +44,7 @@ function group_post(&$a) {
|
||||
intval(local_user())
|
||||
);
|
||||
if(! count($r)) {
|
||||
notice( t('Contact group not found.') . EOL );
|
||||
notice( t('Channel group not found.') . EOL );
|
||||
goaway($a->get_baseurl() . '/contacts');
|
||||
return; // NOTREACHED
|
||||
}
|
||||
@ -57,7 +57,7 @@ function group_post(&$a) {
|
||||
intval($group['id'])
|
||||
);
|
||||
if($r)
|
||||
info( t('Contact group name changed.') . EOL );
|
||||
info( t('Channel group name changed.') . EOL );
|
||||
}
|
||||
|
||||
$a->page['aside'] = group_side();
|
||||
@ -88,7 +88,7 @@ function group_content(&$a) {
|
||||
|
||||
return replace_macros($tpl, $context + array(
|
||||
'$title' => t('Create a group of contacts/friends.'),
|
||||
'$gname' => array('groupname',t('Contact Group Name: '), '', ''),
|
||||
'$gname' => array('groupname',t('Channel Group Name: '), '', ''),
|
||||
'$gid' => 'new',
|
||||
'$form_security_token' => get_form_security_token("group_edit"),
|
||||
));
|
||||
@ -107,9 +107,9 @@ function group_content(&$a) {
|
||||
if(count($r))
|
||||
$result = group_rmv(local_user(),$r[0]['name']);
|
||||
if($result)
|
||||
info( t('Contact group removed.') . EOL);
|
||||
info( t('Channel group removed.') . EOL);
|
||||
else
|
||||
notice( t('Unable to remove contact group.') . EOL);
|
||||
notice( t('Unable to remove channel group.') . EOL);
|
||||
}
|
||||
goaway($a->get_baseurl() . '/group');
|
||||
// NOTREACHED
|
||||
@ -134,7 +134,7 @@ function group_content(&$a) {
|
||||
intval(local_user())
|
||||
);
|
||||
if(! count($r)) {
|
||||
notice( t('Contact group not found.') . EOL );
|
||||
notice( t('Channel group not found.') . EOL );
|
||||
goaway($a->get_baseurl() . '/contacts');
|
||||
}
|
||||
$group = $r[0];
|
||||
@ -174,7 +174,7 @@ function group_content(&$a) {
|
||||
|
||||
$context = $context + array(
|
||||
'$title' => t('Contact Group Editor'),
|
||||
'$gname' => array('groupname',t('Contact Group Name: '),$group['name'], ''),
|
||||
'$gname' => array('groupname',t('Channel Group Name: '),$group['name'], ''),
|
||||
'$gid' => $group['id'],
|
||||
'$drop' => $drop_txt,
|
||||
'$form_security_token' => get_form_security_token('group_edit'),
|
||||
@ -188,7 +188,7 @@ function group_content(&$a) {
|
||||
$groupeditor = array(
|
||||
'label_members' => t('Members'),
|
||||
'members' => array(),
|
||||
'label_contacts' => t('All Contacts'),
|
||||
'label_contacts' => t('All Active Channels'),
|
||||
'contacts' => array(),
|
||||
);
|
||||
|
||||
@ -218,7 +218,7 @@ function group_content(&$a) {
|
||||
}
|
||||
|
||||
$context['$groupeditor'] = $groupeditor;
|
||||
$context['$desc'] = t('Click on a contact to add or remove.');
|
||||
$context['$desc'] = t('Click on a channel to add or remove.');
|
||||
|
||||
if($change) {
|
||||
$tpl = get_markup_template('groupeditor.tpl');
|
||||
|
@ -2981,8 +2981,8 @@ aside input[type='text'] {
|
||||
#lang-select-icon {
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
left: 4px;
|
||||
top: 4px;
|
||||
opacity: 0.2;
|
||||
filter:alpha(opacity=20);
|
||||
}
|
||||
|
Reference in New Issue
Block a user