This commit was manufactured as part of Drupal's Great Git Migration to

create tag 'DRUPAL-7--1-0-BETA1'.

Sprout from master 2010-11-06 22:23:13 UTC salvis <d0@salvisberg.com> 'Update version number.'
Delete:
    tests/acl_node_test.info
    tests/acl_node_test.module
    translations/acl.pot
    translations/de.po
    translations/fr.po
    translations/sv.po
parent d96c2832
; $Id:$
name = "ACL Node module tests"
description = "Support module for ACL node related testing."
package = Testing
version = VERSION
core = 7.x
hidden = TRUE
files[] = acl_node_test.module
<?php
// $Id$
/**
* @file
* Dummy module implementing node related hooks to test API interaction with
* the Node module.
*/
/**
* Implements hook_node_grants().
*/
function acl_node_test_node_grants($account, $op) {
// Give everyone full grants so we don't break other node tests.
// Our node access tests asserts three realms of access.
// See testGrantAlter().
return array(
'test_article_realm' => array(1),
'test_page_realm' => array(1),
'test_alter_realm' => array(2),
);
}
/**
* Implements hook_node_access_records().
* Implicit View by All is allowed
*/
function acl_node_test_node_access_records($node) {
$grants = array();
if ($node->type == 'article') {
// Create grant in arbitrary article_realm for article nodes.
$grants[] = array(
'realm' => 'test_article_realm',
'gid' => 1,
'grant_view' => 1,
'grant_update' => 0,
'grant_delete' => 0,
'priority' => 0,
);
}
elseif ($node->type == 'page') {
// Create grant in arbitrary page_realm for page nodes.
$grants[] = array(
'realm' => 'test_page_realm',
'gid' => 1,
'grant_view' => 1,
'grant_update' => 0,
'grant_delete' => 0,
'priority' => 0,
);
}
return $grants;
}
/**
* Implements hook_node_access_records_alter().
*/
function acl_node_test_node_access_records_alter(&$grants, $node) {
if (!empty($grants)) {
foreach ($grants as $key => $grant) {
// Alter grant from test_page_realm to test_alter_realm and modify the gid.
if ($grant['realm'] == 'test_page_realm' && $node->promote) {
$grants[$key]['realm'] = 'test_alter_realm';
$grants[$key]['gid'] = 2;
}
}
}
}
/**
* Implements hook_node_grants_alter().
*/
function acl_node_test_node_grants_alter(&$grants, $account, $op) {
// Return an empty array of grants to prove that we can alter by reference.
$grants = array();
}
/**
* Implements hook_node_presave().
*/
function acl_node_test_node_presave($node) {
if ($node->title == 'testing_node_presave') {
// Sun, 19 Nov 1978 05:00:00 GMT
$node->created = 280299600;
// Drupal 1.0 release.
$node->changed = 979534800;
}
}
/**
* Helper function to create a new ACL through this module
*/
function acl_node_acl_create_new_acl($name) {
//should not be called acl_create_new_acl but acl_create_acl
acl_create_new_acl('acl_node_test', $name);
}
/**
* Helper function to delete an ACL through this module
*/
function acl_node_acl_delete_acl($acl_id) {
acl_delete_acl($acl_id);
}
/**
* Helper function to add an user
*/
function acl_node_acl_add_user($acl_id,$uid) {
acl_add_user($acl_id,$uid);
}
/**
* Helper function to remove an user
*/
function acl_node_acl_remove_user($acl_id,$uid) {
acl_remove_user($acl_id,$uid);
}
/**
* Helper function to get an ID of an ACL by it's name
*/
function acl_node_acl_get_id_by_name($acl_name) {
return $acl_id = acl_get_id_by_name('acl_node_test', $acl_name);
}
# $Id$
#
# LANGUAGE translation of Drupal (general)
# Copyright YEAR NAME <EMAIL@ADDRESS>
# Generated from files:
# acl.admin.inc,v 1.2 2009/01/27 01:21:22 salvis
# acl.module,v 1.19 2009/02/20 21:46:00 salvis
# acl.install,v 1.10 2009/01/03 19:01:13 salvis
# acl.info: n/a
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"POT-Creation-Date: 2009-05-09 14:04+0200\n"
"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
"Last-Translator: NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
#: acl.admin.inc:43
msgid "Remove Checked"
msgstr ""
#: acl.admin.inc:49
msgid "Add user"
msgstr ""
#: acl.admin.inc:57
msgid "Add User"
msgstr ""
#: acl.admin.inc:92
msgid "Invalid user specified."
msgstr ""
#: acl.admin.inc:102
msgid "Current users"
msgstr ""
#: acl.module:0
msgid "acl"
msgstr ""
#: acl.install:17
msgid "The base Access Control Lists table."
msgstr ""
#: acl.install:20
msgid "Primary key: unique ACL ID."
msgstr ""
#: acl.install:24
msgid "The name of the module that created this ACL entry."
msgstr ""
#: acl.install:29
msgid "A name (or other identifying information) for this ACL entry, given by the module that created it."
msgstr ""
#: acl.install:35
msgid "Identifies {users} to which the referenced {acl} entry applies."
msgstr ""
#: acl.install:38;55
msgid "The {acl}.acl_id of the entry."
msgstr ""
#: acl.install:43
msgid "The {user}.uid to which this {acl} entry applies."
msgstr ""
#: acl.install:52
msgid "Identifies {node}s to which the referenced {acl} entry applies and defines the permissions granted."
msgstr ""
#: acl.install:60
msgid "The {node}.nid to grant permissions for."
msgstr ""
#: acl.install:65
msgid "Whether to grant \"view\" permission."
msgstr ""
#: acl.install:72
msgid "Whether to grant \"update\" permission."
msgstr ""
#: acl.install:79
msgid "Whether to grant \"delete\" permission."
msgstr ""
#: acl.install:86
msgid "The priority of this grant record (for hook_node_access_records())."
msgstr ""
#: acl.info:0
msgid "ACL"
msgstr ""
#: acl.info:0
msgid "Access control list API. Has no features on its own."
msgstr ""
#: acl.info:0
msgid "Access control"
msgstr ""
# $Id$
#
# german translation of Drupal (acl)
# Copyright 2008 Eikaa
#
msgid ""
msgstr ""
"Project-Id-Version: ACL 6.x\n"
"POT-Creation-Date: 2008-04-04 20:56+0200\n"
"PO-Revision-Date: 2009-02-05 22:55+0100\n"
"Last-Translator: Eikaa\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n!=1);\n"
"X-Poedit-Language: German\n"
"X-Poedit-Country: GERMANY\n"
"X-Poedit-SourceCharset: utf-8\n"
#: acl.module:82
msgid "Remove Checked"
msgstr "Entferne Ausgewählte"
#: acl.module:88
msgid "Add user"
msgstr "Nutzer hinzufügen"
#: acl.module:95
msgid "Add User"
msgstr "Nutzer hinzufügen"
#: acl.module:149
msgid "Current users"
msgstr "Derzeitige Nutzer"
#: acl.module:0
msgid "acl"
msgstr "acl"
#: acl.install:17
msgid "The base Access Control Lists table."
msgstr "Die \"Access Control Lists\" Tabelle"
#: acl.install:20
msgid "Primary key: unique ACL ID."
msgstr "Primary key: unique ACL ID."
#: acl.install:24
msgid "The name of the module that created this ACL entry."
msgstr "Name des Moduls, dass diesen ACL Eintrag vorgenommen hat."
#: acl.install:28
msgid "A name (or other identifying information) for this ACL entry, given by the module that created it."
msgstr "Ein Name (oder andere identifizierende Information), für diesen ACL Eintrag, der vom Modul stammt, dass diesen Eintrag gemacht hat."
#: acl.install:34
msgid "Identifies {users} to which the referenced {acl} entry applies."
msgstr "Identifiziert {users} welche vom referenzierten {acl} Eintrag betroffen sind."
#: acl.install:37;54
msgid "The {acl}.acl_id of the entry."
msgstr "Die {acl}.acl_id des Eintrags"
#: acl.install:42
msgid "The {user}.uid to which this {acl} entry applies."
msgstr "Die {user}.uid zu der dieser {acl} Eintrag gehört."
#: acl.install:51
msgid "Identifies {node}s to which the referenced {acl} entry applies and defines the permissions granted."
msgstr "Identifiziert {node}s die von einem {acl} Eintrag betroffen sind und definiert die Zugriffsrechte."
#: acl.install:59
msgid "The {node}.nid to grant permissions for."
msgstr "Die {node}.nid für die die Zugriffsrechte gelten sollen."
#: acl.install:64
msgid "Whether to grant \"view\" permission."
msgstr "Ob \"Ansehen\" Rechte gewährt werden sollen."
#: acl.install:71
msgid "Whether to grant \"update\" permission."
msgstr "Ob \"Ändern\" Rechte gewährt werden sollen."
#: acl.install:78
msgid "Whether to grant \"delete\" permission."
msgstr "Ob \"Löschen\" Rechte gewährt werden sollen."
#: acl.install:85
msgid "The priority of this grant record (for hook_node_access_records())."
msgstr "Die Priorität dieses Zugriffsrechts (für hook_node_access_records())."
#: acl.info:0
msgid "ACL"
msgstr "ACL"
#: acl.info:0
msgid "Access control list API. Has no features on its own."
msgstr "Access control list API. Hat keine Eigenständige Funktionalität."
#: acl.info:0
msgid "Access control"
msgstr "Access Control (Zugriffsrechte)"
msgid ""
msgstr ""
"Project-Id-Version: French ACL\n"
"POT-Creation-Date: 2010-06-13 18:43+0200\n"
"PO-Revision-Date: \n"
"Last-Translator: Frederic G. MARAND <fgm@osinet.fr>\n"
"Language-Team: OSInet <support@osinet.fr>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n>1);\n"
"X-Poedit-Language: French\n"
"X-Poedit-Country: FRANCE\n"
"X-Poedit-SourceCharset: utf-8\n"
#: acl.admin.inc:50
msgid "Remove Checked"
msgstr "Supprimer les valeurs cochées"
#: acl.admin.inc:56
msgid "Add user"
msgstr "Ajouter un utilisateur"
#: acl.admin.inc:64
msgid "Add User"
msgstr "Ajouter un Utilisateur"
#: acl.admin.inc:101
msgid "Invalid user specified."
msgstr "Utilisateur spécifié invalide."
#: acl.admin.inc:111
msgid "Current users"
msgstr "Utilisateurs actuels"
#: acl.info:0
msgid "ACL"
msgstr "ACL"
#: acl.info:0
msgid "Access control list API. Has no features on its own."
msgstr "API de liste de contrôle d'accès. Ne fournit aucune fonctionnalité par lui-même."
#: acl.info:0
msgid "Access control"
msgstr "Contrôle d'accès"
#~ msgid "acl"
#~ msgstr "acl"
#~ msgid "The base Access Control Lists table."
#~ msgstr "La table de base des listes de contrôle d'accès"
#~ msgid "Primary key: unique ACL ID."
#~ msgstr "Clef primaire: l'identifiant unique d'ACL"
#~ msgid "The name of the module that created this ACL entry."
#~ msgstr "Le nom du module qui a créé cette entrée d'ACL."
#~ msgid ""
#~ "A name (or other identifying information) for this ACL entry, given by "
#~ "the module that created it."
#~ msgstr ""
#~ "Un nom (ou toute autre forme d'identification) pour cette entrée d'ACL, "
#~ "donné par le module qui l'a créée."
#~ msgid "Identifies {users} to which the referenced {acl} entry applies."
#~ msgstr ""
#~ "Identifie les {users} auxquels l'entrée d'{acl} référencée s'applique."
#~ msgid "The {acl}.acl_id of the entry."
#~ msgstr "L'{acl}.acl_id de l'entrée."
#~ msgid "The {user}.uid to which this {acl} entry applies."
#~ msgstr "Le {users}.uid auquel cette entrée d'{acl} s'applique."
#~ msgid ""
#~ "Identifies {node}s to which the referenced {acl} entry applies and "
#~ "defines the permissions granted."
#~ msgstr ""
#~ "Identifie le(s) {node}s au(x)quel(s) l'entrée d'{acl} référencée "
#~ "s'applique, et définit les droits qu'elle accorde."
#~ msgid "The {node}.nid to grant permissions for."
#~ msgstr "Le {node}.nid auquel des droits sont donnés."
#~ msgid "Whether to grant \"view\" permission."
#~ msgstr "Donner ou non le droit \"voir\"."
#~ msgid "Whether to grant \"update\" permission."
#~ msgstr "Donner ou non le droit \"modifier\"."
#~ msgid "Whether to grant \"delete\" permission."
#~ msgstr "Donner ou non le droit \"supprimer\"."
#~ msgid "The priority of this grant record (for hook_node_access_records())."
#~ msgstr ""
#~ "La priorité de cet enregistrement de droits (pour hook_node_access_records"
#~ "())."
# $Id$
#
# Swedish translation of Drupal (acl)
# Generated from files:
# acl.admin.inc,v 1.2 2009/01/27 01:21:22 salvis
# acl.module,v 1.19 2009/02/20 21:46:00 salvis
# acl.install,v 1.10 2009/01/03 19:01:13 salvis
# acl.info: n/a
#
msgid ""
msgstr ""
"Project-Id-Version: ACL 6.x\n"
"POT-Creation-Date: 2009-05-09 14:04+0200\n"
"PO-Revision-Date: 2009-05-09 23:03+0100\n"
"Last-Translator: Magnus Gunnarsson <seals@passagen.se>\n"
"Language-Team: drupalsverige.se\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n!=1);\n"
"X-Poedit-Language: Swedish\n"
"X-Poedit-Country: SWEDEN\n"
"X-Poedit-SourceCharset: utf-8\n"
#: acl.admin.inc:43
msgid "Remove Checked"
msgstr "Ta bort kontrollerade"
#: acl.admin.inc:49
msgid "Add user"
msgstr "Lägg till användare"
#: acl.admin.inc:57
msgid "Add User"
msgstr "Lägg till användare"
#: acl.admin.inc:92
msgid "Invalid user specified."
msgstr "Ogiltig användare specificerad."
#: acl.admin.inc:102
msgid "Current users"
msgstr "Nuvarande användare"
#: acl.module:0
msgid "acl"
msgstr "acl"
#: acl.install:17
msgid "The base Access Control Lists table."
msgstr "Huvudtabellen för behörighetsvisning."
#: acl.install:20
msgid "Primary key: unique ACL ID."
msgstr "Primärnyckel: Unikt ID för ACL."
#: acl.install:24
msgid "The name of the module that created this ACL entry."
msgstr "Namnet på modulen som skapade den här noteringen av typen ACL."
#: acl.install:29
msgid "A name (or other identifying information) for this ACL entry, given by the module that created it."
msgstr "Ett namn (eller annan identifierbar information) för den här noteringen av typen ACL, givet av modulen som skapade det."
#: acl.install:35
msgid "Identifies {users} to which the referenced {acl} entry applies."
msgstr "Identifierar {users} för noteringen till den refererade {acl} det gäller."
#: acl.install:38;55
msgid "The {acl}.acl_id of the entry."
msgstr "Den {acl}.acl_id för noteringen."
#: acl.install:43
msgid "The {user}.uid to which this {acl} entry applies."
msgstr "Den {user}.uid till vilken den här noteringen av typen {acl} det gäller."
#: acl.install:52
msgid "Identifies {node}s to which the referenced {acl} entry applies and defines the permissions granted."
msgstr "Identifierar {node}(er) till vilken den här noteringen av typen {acl} det gäller och definiera givna rättigheter."
#: acl.install:60
msgid "The {node}.nid to grant permissions for."
msgstr "Den {node}.nid att ge rättigheter till."
#: acl.install:65
msgid "Whether to grant \"view\" permission."
msgstr "Huruvida att ge rättighet av typen \"visa\"."
#: acl.install:72
msgid "Whether to grant \"update\" permission."
msgstr "Huruvida att ge rättighet av typen \"uppdatera\"."
#: acl.install:79
msgid "Whether to grant \"delete\" permission."
msgstr "Huruvida att ge rättighet av typen \"radera\"."
#: acl.install:86
msgid "The priority of this grant record (for hook_node_access_records())."
msgstr "Prioriteringen för den här givna registreringen (för hook_node_access_records())."
#: acl.info:0
msgid "ACL"
msgstr "ACL (behörighetsvisning)"
#: acl.info:0
msgid "Access control list API. Has no features on its own."
msgstr "API (Programmeringsgränssnitt) för behörighetsvisning. Har inga egna funktioner."
#: acl.info:0
msgid "Access control"
msgstr "Behörighet"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment