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,4 +1,3 @@
; $Id: role_delegation.info,v 1.2 2008/06/12 04:00:35 davidlesieur Exp $
name = "Role Delegation"
description = "Allows site administrators to grant some roles the authority to assign selected roles to users."
package = Core - extended

View file

@ -1,6 +1,4 @@
<?php
// $Id: role_delegation.install,v 1.1.2.1 2009/12/31 06:27:45 davidlesieur Exp $
/**
* Update permission names to allow non-English characters.
* See http://drupal.org/node/510054.
@ -34,4 +32,4 @@ function role_delegation_update_6000() {
}
}
return $ret;
}
}

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(