Removed obsolete $ in source files

This commit is contained in:
Manuel Cillero 2017-08-29 14:13:02 +02:00
parent a39c010e06
commit e5f2b64d98
146 changed files with 836 additions and 1081 deletions

View file

@ -1,6 +1,4 @@
<?php
// $Id: role_delegation.module,v 1.14.2.7 2010/12/09 18:25:31 andrewschulman Exp $
/**
* @file
*
@ -40,7 +38,7 @@ function role_delegation_perm() {
function role_delegation_menu() {
global $user;
$items = array();
$items['user/%user/roles'] = array(
'title' => 'Roles',
'page callback' => 'drupal_get_form',
@ -91,7 +89,7 @@ function role_delegation_roles_form(&$form_state, $account) {
'#type' => 'submit',
'#value' => t('Submit'),
);
drupal_set_title(check_plain($account->name));
return $form;
}
@ -105,7 +103,7 @@ function role_delegation_roles_form_submit($form, &$form_state) {
$myroles = array();
$rolenames = user_roles(TRUE);
foreach (array_keys(array_filter($form_state['values']['roles'])) as $rid) {
$myroles[$rid] = $rolenames[$rid];
$myroles[$rid] = $rolenames[$rid];
}
user_save($account, array('roles' => $myroles));
@ -244,7 +242,7 @@ function role_delegation_user($op, &$edit, &$account, $category = NULL) {
}
if (empty($roles_options)) {
// No role can be assigned.
return;
return;
}
// Generate the form items.
$form['roles_preserve'] = array(