Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 871521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:39:08+00:00 2026-05-15T10:39:08+00:00

I am use drupal 6. it seems like permission page can not save too

  • 0

I am use drupal 6.

it seems like permission page can not save too many settings.

I have try to save permission setting, but it is just not saved into DB.
I have found out this is due to “too many fields”. (use content permission module).
if i uncheck some fields, and then checking lesser fields, permission will be saved.

for example, if I am unchecking 2 check boxes, then checking one check box, permission will be saved.

does any one know which function the permission page used to insert result into db?

my php memory limit is 256M.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T10:39:08+00:00Added an answer on May 15, 2026 at 10:39 am

    The function that saves the permissions in the database is user_admin_perm_submit().

    function user_admin_perm_submit($form, &$form_state) {
      // Save permissions:
      $result = db_query('SELECT * FROM {role}');
      while ($role = db_fetch_object($result)) {
        if (isset($form_state['values'][$role->rid])) {
          // Delete, so if we clear every checkbox we reset that role;
          // otherwise permissions are active and denied everywhere.
          db_query('DELETE FROM {permission} WHERE rid = %d', $role->rid);
          $form_state['values'][$role->rid] = array_filter($form_state['values'][$role->rid]);
          if (count($form_state['values'][$role->rid])) {
            db_query("INSERT INTO {permission} (rid, perm) VALUES (%d, '%s')", $role->rid, implode(', ', array_keys($form_state['values'][$role->rid])));
          }
        }
      }
    
      drupal_set_message(t('The changes have been saved.'));
    
      // Clear the cached pages
      cache_clear_all();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Drupal 6 web site and would like to use a node
I'm try to use drupal open id module. When i used to login using
My Drupal 6 installation has the php filter disabled so I can't use <?php
Drupal version 6.12 I have a page whose input format is PHP. I simply
Can we use Drupal as a framework for larger application? Is it suitable for
I'm writing my own Drupal 7 module, and like to use JQuery in it.
I quite often use Drupal's Views Module to build SQL that I paste into
How would I be able to use the Drupal Fivestar voting module for voting
When you use the file import in drupal 6 it adds a whole lot
Anyone know how to use Google Analytics for a Drupal-powered company intranet site behind

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.