function theme_og_ui_admin_permissions

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 og_ui.admin.inc theme_og_ui_admin_permissions($variables)
cle7 og_ui.admin.inc theme_og_ui_admin_permissions($variables)
elmsmedia7 og_ui.admin.inc theme_og_ui_admin_permissions($variables)
icor7 og_ui.admin.inc theme_og_ui_admin_permissions($variables)
meedjum_blog7 og_ui.admin.inc theme_og_ui_admin_permissions($variables)
mooc7 og_ui.admin.inc theme_og_ui_admin_permissions($variables)

Theme the administer permissions page.

Related topics

3 string references to the theme hook from theme_og_ui_admin_permissions()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

og_ui_forms in sites/all/modules/ulmus/og/og_ui/og_ui.module
Implement hook_forms().
og_ui_menu in sites/all/modules/ulmus/og/og_ui/og_ui.module
Implements hook_menu().
og_ui_theme in sites/all/modules/ulmus/og/og_ui/og_ui.module
Implement hook_theme().

File

sites/all/modules/ulmus/og/og_ui/og_ui.admin.inc, line 877
Admin settings for Organic groups module.

Code

function theme_og_ui_admin_permissions($variables) {
  $form = $variables['form'];
  $role_names = $form['role_names']['#value'];

  foreach (element_children($form['permission']) as $key) {
    $row = array();
    // Module name.
    if (is_numeric($key)) {
      $row[] = array(
        'data' => drupal_render($form['permission'][$key]),
        'class' => array('module'),
        'id' => 'module-' . $form['permission'][$key]['#id'],
        'colspan' => count($form['role_names']['#value']) + 1,
      );
    }
    else {
      // Permission row.
      $row[] = array(
        'data' => drupal_render($form['permission'][$key]),
        'class' => array('permission'),
      );

      foreach (element_children($form['checkboxes']) as $rid) {
        $form['checkboxes'][$rid][$key]['#title'] = $role_names[$rid] . ': ' . $form['permission'][$key]['#markup'];
        $form['checkboxes'][$rid][$key]['#title_display'] = 'invisible';
        $row[] = array(
          'data' => drupal_render($form['checkboxes'][$rid][$key]),
          'class' => array('checkbox'),
        );
      }
    }
    $rows[] = $row;
  }
  $header[] = (t('Permission'));
  foreach (element_children($form['role_names']) as $rid) {
    $header[] = array(
      'data' => drupal_render($form['role_names'][$rid]),
      'class' => array('checkbox'),
    );
  }
  $output = '';
  $output .= theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('id' => 'permissions')));
  $output .= drupal_render_children($form);
  return $output;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.