| 48 |
return $output; |
return $output; |
| 49 |
} |
} |
| 50 |
} |
} |
|
function internet_center_primary_links() { |
|
|
$links = menu_primary_links(); |
|
|
if ($links) { |
|
|
$output .= '<ul>'; |
|
|
foreach ($links as $link) { |
|
|
$output .= '<li>' . $link . '</li>'; |
|
|
}; |
|
|
$output .= '</ul>'; |
|
|
} |
|
|
return $output; |
|
|
} |
|
| 51 |
|
|
| 52 |
/* Checks to see if we're in the admin section */ |
/* Checks to see if we're in the admin section */ |
| 53 |
function internet_center_is_admin() { |
function internet_center_is_admin() { |
| 79 |
foreach (element_children($form) as $key) { |
foreach (element_children($form) as $key) { |
| 80 |
$row = array(); |
$row = array(); |
| 81 |
if (is_array($form[$key]['description'])) { |
if (is_array($form[$key]['description'])) { |
| 82 |
$row[] = form_render($form[$key]['description']) . form_render($form[$key]['screenshot']) ; |
$row[] = drupal_render($form[$key]['description']) . drupal_render($form[$key]['screenshot']) ; |
| 83 |
$row[] = array('data' => form_render($form['status'][$key]), 'align' => 'center'); |
$row[] = array('data' => drupal_render($form['status'][$key]), 'align' => 'center'); |
| 84 |
if ($form['theme_default']) { |
if ($form['theme_default']) { |
| 85 |
$row[] = array('data' => form_render($form['theme_default'][$key]) . form_render($form[$key]['operations']), 'align' => 'center'); |
$row[] = array('data' => drupal_render($form['theme_default'][$key]) . drupal_render($form[$key]['operations']), 'align' => 'center'); |
| 86 |
} |
} |
| 87 |
} |
} |
| 88 |
$rows[] = $row; |
$rows[] = $row; |
| 89 |
} |
} |
| 90 |
$header = array(t('Name/Screenshot'), t('Enabled'), t('Default')); |
$header = array(t('Name/Screenshot'), t('Enabled'), t('Default')); |
| 91 |
$output = theme('table', $header, $rows); |
$output = theme('table', $header, $rows); |
| 92 |
$output .= form_render($form); |
$output .= drupal_render($form); |
| 93 |
return $output; |
return $output; |
| 94 |
} |
} |
| 95 |
function phptemplate_system_user($form) { |
function phptemplate_system_user($form) { |
| 96 |
foreach (element_children($form) as $key) { |
foreach (element_children($form) as $key) { |
| 97 |
$row = array(); |
$row = array(); |
| 98 |
if (is_array($form[$key]['description'])) { |
if (is_array($form[$key]['description'])) { |
| 99 |
$row[] = form_render($form[$key]['description']) . form_render($form[$key]['screenshot']); |
$row[] = drupal_render($form[$key]['description']) . drupal_render($form[$key]['screenshot']); |
| 100 |
$row[] = array('data' => form_render($form['theme'][$key]), 'align' => 'center'); |
$row[] = array('data' => drupal_render($form['theme'][$key]), 'align' => 'center'); |
| 101 |
} |
} |
| 102 |
$rows[] = $row; |
$rows[] = $row; |
| 103 |
} |
} |