/[drupal]/contributions/modules/simple_access/simple_access.module
ViewVC logotype

Diff of /contributions/modules/simple_access/simple_access.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.38.2.11, Wed Oct 1 02:50:20 2008 UTC revision 1.38.2.12, Wed Oct 1 02:55:09 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: simple_access.module,v 1.38.2.10 2008/09/29 07:42:58 gordon Exp $  // $Id: simple_access.module,v 1.38.2.11 2008/10/01 02:50:20 gordon Exp $
3    
4    
5  /**  /**
# Line 568  function theme_simple_access_page_overvi Line 568  function theme_simple_access_page_overvi
568    return $output;    return $output;
569  }  }
570    
571  function simple_access_page_overview_submit($form, &$form_state) {  function simple_access_page_overview_submit($form_id, $form_values) {
572    foreach ($form_state['values']['groups'] as $gid => $group) {    foreach ($form_values['groups'] as $gid => $group) {
573      db_query('UPDATE simple_access_groups SET weight = %d WHERE gid = %d', $group['weight'], $gid);      db_query('UPDATE simple_access_groups SET weight = %d WHERE gid = %d', $group['weight'], $gid);
574    }    }
575  }  }
# Line 633  function theme_simple_access_profile_lis Line 633  function theme_simple_access_profile_lis
633    return $output;    return $output;
634  }  }
635    
636  function simple_access_profile_list_submit($form, $form_state) {  function simple_access_profile_list_submit($form_id, $form_values) {
637    foreach ($form_state['values']['profiles'] as $pid => $profile) {    foreach ($form_values['profiles'] as $pid => $profile) {
638      db_query('UPDATE simple_access_profiles SET weight = %d WHERE pid = %d', $profile['weight'], $pid);      db_query('UPDATE simple_access_profiles SET weight = %d WHERE pid = %d', $profile['weight'], $pid);
639    }    }
640  }  }

Legend:
Removed from v.1.38.2.11  
changed lines
  Added in v.1.38.2.12

  ViewVC Help
Powered by ViewVC 1.1.2