| 1 |
<?php |
<?php |
| 2 |
function phptemplate_menu_tree($pid = 1) { |
|
|
if ($tree = menu_tree($pid)) { |
|
|
$output .= "<ul>"; |
|
|
if ($pid == 1) { |
|
|
$output .= "<li><a href=\"node\">home</a></li>"; |
|
|
}; |
|
|
$output .= $tree; |
|
|
$output .= "</ul>"; |
|
|
return $output; |
|
|
} |
|
|
} |
|
|
function phptemplate_menu_item($mid, $children = '', $leaf = TRUE) { |
|
|
//return '<li class="'. ($leaf ? 'leaf' : ($children ? 'expanded' : 'collapsed')) .'">'. menu_item_link($mid) . $children ."</li>\n"; |
|
|
return '<li>'. menu_item_link($mid) . $children ."</li>"; |
|
|
} |
|
|
function phptemplate_system_themes($form) { |
|
|
foreach (element_children($form) as $key) { |
|
|
$row = array(); |
|
|
if (is_array($form[$key]['description'])) { |
|
|
$row[] = drupal_render($form[$key]['description']) . drupal_render($form[$key]['screenshot']) ; |
|
|
$row[] = array('data' => drupal_render($form['status'][$key]), 'align' => 'center'); |
|
|
if ($form['theme_default']) { |
|
|
$row[] = array('data' => drupal_render($form['theme_default'][$key]) . drupal_render($form[$key]['operations']), 'align' => 'center'); |
|
|
} |
|
|
} |
|
|
$rows[] = $row; |
|
|
} |
|
|
$header = array(t('Name/Screenshot'), t('Enabled'), t('Default')); |
|
|
$output = theme('table', $header, $rows); |
|
|
$output .= drupal_render($form); |
|
|
return $output; |
|
|
} |
|
| 3 |
function phptemplate_system_user($form) { |
function phptemplate_system_user($form) { |
| 4 |
foreach (element_children($form) as $key) { |
foreach (element_children($form) as $key) { |
| 5 |
$row = array(); |
$row = array(); |