You are here

function simple_access_page_overview_submit in Simple Access 6.2

Same name and namespace in other branches
  1. 5.2 simple_access.module \simple_access_page_overview_submit()
  2. 7.2 simple_access.admin.inc \simple_access_page_overview_submit()

File

./simple_access.admin.inc, line 49
House all the admin functions in inc to make the foot print a lot smaller.

Code

function simple_access_page_overview_submit($form, &$form_state) {
  foreach ($form_state['values']['groups'] as $gid => $group) {
    $group['gid'] = $gid;
    drupal_write_record('simple_access_groups', $group, array(
      'gid',
    ));
  }
}