OG User Roles: Test

Last updated on
30 April 2025

As of release 2.1, there is now a OG User Roles settings option which allows you to output debug info to a table.

You can use the Database Administration module in order to execute queries on your Drupal site database and view the table contents. Download from: http://www.drupal.org/project/dba

In order to output debug data to this table, go to OG User Roles settings, and in the form section "Test/Debug" place a check in the box next to Output debug data to og_user_test table?. This action will begin outputting data to the og_user_test table.

OG User Roles will automatically create this table:

    CREATE TABLE og_user_test (
      testDate varchar(25),
      testUser varchar(5),
      testUserName varchar(40),
      testGroup varchar(5),
      testFunction varchar(60),
      testSubFunction varchar(80),
      testString varchar(60),
      testStatus varchar(10),
      testURI varchar(200),
      testAArg0 varchar(40),
      testAArg1 varchar(40),
      testAArg2 varchar(40),
      testAArg3 varchar(40),
      testPerm long varchar)

To see the output, you must be able to access the table using the SQL command:

"select * from og_user_test".

You can execute this command using the Database Administration module: Admin->Site Building->Database.

You will see output similar to this:

http://ftp.scbbs.com/pub/drupal/og_user_roles/og_user_test.gif

testDate = The time the entry was made.
testUser = UID of the user making the entry.
testUserName = Name of the user making the entry.
testGroup = GID of the group OG User Roles has calculated this page belongs to.
testFunction = The function these values are reported from.
testSubFunction = Location (if any) within code that returns the the GID.
testString = This is the GID as returned by the group context: og_get_group_context();
testStatus = Returning nothing right now.
testURI = The value returned by: $uri_request_id = request_uri();
testAArg0 = arg(0) value.
testAArg1 = arg(1) value.
testAArg2 = arg(2) value.
testAArg3 = arg(3) value.
testPerm = The roles returned by OG User Roles.

Help improve this page

Page status: Not set

You can: