';
}
/**
@@ -1947,7 +1960,8 @@ function template_process_username(&$variables) {
* @see template_preprocess_username()
* @see template_process_username()
*/
-function theme_username($object) {
+function theme_username($variables) {
+ $object = $variables['object'];
if (isset($object->link_path)) {
// We have a link path, so we should generate a link using l().
// Additional classes may be added as array elements like
@@ -1973,11 +1987,11 @@ function theme_username($object) {
* @return
* A themed HTML string representing the progress bar.
*/
-function theme_progress_bar($percent, $message) {
+function theme_progress_bar($variables) {
$output = '
';
if (!empty($form['current'])) {
@@ -514,7 +520,10 @@ function node_admin_nodes_submit($form, &$form_state) {
*
* @ingroup themeable
*/
-function theme_node_admin_nodes($form) {
+function theme_node_admin_nodes($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$output = '';
$output .= drupal_render($form['options']);
diff --git modules/node/node.module modules/node/node.module
index 665f0b1..9c7144c 100644
--- modules/node/node.module
+++ modules/node/node.module
@@ -282,7 +282,10 @@ function node_title_list($result, $title = NULL) {
*
* @ingroup themeable
*/
-function theme_node_list($items, $title = NULL) {
+function theme_node_list($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
return theme('item_list', $items, $title);
}
@@ -1207,7 +1210,10 @@ function template_preprocess_node(&$variables) {
*
* @ingroup themeable
*/
-function theme_node_log_message($log) {
+function theme_node_log_message($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
return '
' . t('Log') . ':
' . $log . '
';
}
@@ -1508,7 +1514,10 @@ function node_user_cancel($edit, $account, $method) {
*
* @ingroup themeable
*/
-function theme_node_search_admin($form) {
+function theme_node_search_admin($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$output = drupal_render($form['info']);
$header = array(t('Factor'), t('Weight'));
diff --git modules/node/node.pages.inc modules/node/node.pages.inc
index d524f2a..3429d2d 100644
--- modules/node/node.pages.inc
+++ modules/node/node.pages.inc
@@ -32,7 +32,10 @@ function node_add_page() {
*
* @ingroup themeable
*/
-function theme_node_add_list($content) {
+function theme_node_add_list($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$output = '';
if ($content) {
@@ -320,7 +323,10 @@ function node_form_build_preview($form, &$form_state) {
*
* @ingroup themeable
*/
-function theme_node_form($form) {
+function theme_node_form($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$output = "\n
\n";
$output .= "
\n";
@@ -379,7 +385,10 @@ function node_preview($node) {
*
* @ingroup themeable
*/
-function theme_node_preview($node) {
+function theme_node_preview($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$output = '
';
$preview_trimmed_version = FALSE;
diff --git modules/poll/poll.module modules/poll/poll.module
index d06a653..4bde930 100644
--- modules/poll/poll.module
+++ modules/poll/poll.module
@@ -747,7 +747,10 @@ function poll_view_results($node, $build_mode, $block = FALSE) {
*
* @ingroup themeable
*/
-function theme_poll_choices($form) {
+function theme_poll_choices($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
drupal_add_tabledrag('poll-choice-table', 'order', 'sibling', 'poll-weight');
$delta = 0;
diff --git modules/profile/profile.admin.inc modules/profile/profile.admin.inc
index f1180a5..9bfa21d 100644
--- modules/profile/profile.admin.inc
+++ modules/profile/profile.admin.inc
@@ -96,7 +96,10 @@ function profile_admin_overview_submit($form, &$form_state) {
* @ingroup themeable
* @see profile_admin_overview()
*/
-function theme_profile_admin_overview($form) {
+function theme_profile_admin_overview($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
drupal_add_css(drupal_get_path('module', 'profile') . '/profile.css');
// Add javascript if there's more than one field.
if (isset($form['submit'])) {
diff --git modules/search/search.pages.inc modules/search/search.pages.inc
index 801b077..2e2deaa 100644
--- modules/search/search.pages.inc
+++ modules/search/search.pages.inc
@@ -56,7 +56,10 @@ function search_view($type = 'node') {
* @return
* A string containing the listing output.
*/
-function theme_search_results_listing($title, $content) {
+function theme_search_results_listing($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$output = '
' . $title . '
' . $content . '
';
return $output;
}
diff --git modules/simpletest/simpletest.pages.inc modules/simpletest/simpletest.pages.inc
index efae086..867b502 100644
--- modules/simpletest/simpletest.pages.inc
+++ modules/simpletest/simpletest.pages.inc
@@ -65,7 +65,10 @@ function simpletest_test_form() {
* @param $table Form array that represent a table.
* @return HTML output.
*/
-function theme_simpletest_test_table($table) {
+function theme_simpletest_test_table($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
drupal_add_css(drupal_get_path('module', 'simpletest') . '/simpletest.css');
drupal_add_js(drupal_get_path('module', 'simpletest') . '/simpletest.js');
@@ -362,7 +365,10 @@ function simpletest_result_form_submit($form, &$form_state) {
*
* @return HTML output.
*/
-function theme_simpletest_result_summary($form) {
+function theme_simpletest_result_summary($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
return '
' . _simpletest_format_summary_line($form) . '
';
}
diff --git modules/simpletest/tests/common_test.module modules/simpletest/tests/common_test.module
index 1b2464b..baa8331 100644
--- modules/simpletest/tests/common_test.module
+++ modules/simpletest/tests/common_test.module
@@ -84,7 +84,10 @@ function common_test_theme() {
/**
* Theme function for testing drupal_render() theming.
*/
-function theme_common_test_foo($foo, $bar) {
+function theme_common_test_foo($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
return $foo . $bar;
}
diff --git modules/simpletest/tests/field_test.module modules/simpletest/tests/field_test.module
index a0bac02..aa672b5 100644
--- modules/simpletest/tests/field_test.module
+++ modules/simpletest/tests/field_test.module
@@ -561,7 +561,10 @@ function field_test_theme() {
/**
* Theme function for 'field_test_default' formatter.
*/
-function theme_field_formatter_field_test_default($element) {
+function theme_field_formatter_field_test_default($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$value = $element['#item']['value'];
$settings = $element['#settings'];
@@ -571,7 +574,10 @@ function theme_field_formatter_field_test_default($element) {
/**
* Theme function for 'field_test_multiple' formatter.
*/
-function theme_field_formatter_field_test_multiple($element) {
+function theme_field_formatter_field_test_multiple($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$settings = $element['#settings'];
$items = array();
diff --git modules/syslog/syslog.module modules/syslog/syslog.module
index 5b1805d..c9cd552 100644
--- modules/syslog/syslog.module
+++ modules/syslog/syslog.module
@@ -93,7 +93,10 @@ function syslog_theme() {
*
* @ingroup themeable
*/
-function theme_syslog_format($entry) {
+function theme_syslog_format($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
global $base_url;
$message = $base_url;
diff --git modules/system/system.admin.inc modules/system/system.admin.inc
index 2ca6956..4be2681 100644
--- modules/system/system.admin.inc
+++ modules/system/system.admin.inc
@@ -1954,7 +1954,10 @@ function system_batch_page() {
* include a 'title', a 'description' and a formatted 'content'.
* @ingroup themeable
*/
-function theme_admin_block($block) {
+function theme_admin_block($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
// Don't display the block if it has no content to display.
if (empty($block['show'])) {
return '';
@@ -1995,7 +1998,10 @@ EOT;
* include a 'title', a 'description' and a formatted 'content'.
* @ingroup themeable
*/
-function theme_admin_block_content($content) {
+function theme_admin_block_content($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
if (!$content) {
return '';
}
@@ -2028,7 +2034,10 @@ function theme_admin_block_content($content) {
* in. This is usually 'left' or 'right'.
* @ingroup themeable
*/
-function theme_admin_page($blocks) {
+function theme_admin_page($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$stripe = 0;
$container = array();
@@ -2064,7 +2073,10 @@ function theme_admin_page($blocks) {
* An array of modules to be displayed.
* @ingroup themeable
*/
-function theme_system_admin_by_module($menu_items) {
+function theme_system_admin_by_module($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$stripe = 0;
$output = '';
$container = array('left' => '', 'right' => '');
@@ -2112,7 +2124,10 @@ function theme_system_admin_by_module($menu_items) {
* An array of requirements.
* @ingroup themeable
*/
-function theme_status_report($requirements) {
+function theme_status_report($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$i = 0;
$output = '
';
foreach ($requirements as $requirement) {
@@ -2149,7 +2164,10 @@ function theme_status_report($requirements) {
* An associative array containing the structure of the form.
* @ingroup themeable
*/
-function theme_system_modules_fieldset($form) {
+function theme_system_modules_fieldset($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
// Individual table headers.
$rows = array();
// Iterate through all the modules, which are
@@ -2196,7 +2214,10 @@ function theme_system_modules_fieldset($form) {
* @return
* An HTML string for the message.
*/
-function theme_system_modules_incompatible($message) {
+function theme_system_modules_incompatible($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
return '
' . $message . '
';
}
@@ -2209,7 +2230,10 @@ function theme_system_modules_incompatible($message) {
* @return
* An HTML string representing the table.
*/
-function theme_system_modules_uninstall($form) {
+function theme_system_modules_uninstall($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
// No theming for the confirm form.
if (isset($form['confirm'])) {
return drupal_render($form);
@@ -2249,7 +2273,10 @@ function theme_system_modules_uninstall($form) {
* An associative array containing the structure of the form.
* @ingroup themeable
*/
-function theme_system_themes_form($form) {
+function theme_system_themes_form($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
foreach (element_children($form) as $key) {
// Only look for themes
if (!isset($form[$key]['info'])) {
diff --git modules/system/system.module modules/system/system.module
index 4f29fd4..aa15c2d 100644
--- modules/system/system.module
+++ modules/system/system.module
@@ -2963,7 +2963,10 @@ function system_timezone($abbreviation = '', $offset = -1, $is_daylight_saving_t
*
* @ingroup themeable
*/
-function theme_system_powered_by($image_path) {
+function theme_system_powered_by($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$image = theme('image', $image_path, t('Powered by Drupal, an open source content management system'), t('Powered by Drupal, an open source content management system'));
return l($image, 'http://drupal.org', array('html' => TRUE, 'absolute' => TRUE, 'external' => TRUE));
}
@@ -2992,7 +2995,10 @@ function theme_system_compact_link() {
*
* @ingroup themeable
*/
-function theme_meta_generator_html($version = VERSION) {
+function theme_meta_generator_html($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
drupal_add_html_head('');
}
@@ -3001,7 +3007,10 @@ function theme_meta_generator_html($version = VERSION) {
*
* @ingroup themeable
*/
-function theme_meta_generator_header($version = VERSION) {
+function theme_meta_generator_header($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
drupal_set_header('X-Generator', 'Drupal ' . $version . ' (http://drupal.org)');
}
@@ -3154,7 +3163,10 @@ function system_run_cron_image_access() {
* @see system_run_cron_image()
* @ingroup themeable
*/
-function theme_system_run_cron_image($image_path) {
+function theme_system_run_cron_image($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
return '';
}
diff --git modules/taxonomy/taxonomy.admin.inc modules/taxonomy/taxonomy.admin.inc
index 2339e1f..4860cfa 100644
--- modules/taxonomy/taxonomy.admin.inc
+++ modules/taxonomy/taxonomy.admin.inc
@@ -62,7 +62,10 @@ function taxonomy_overview_vocabularies_submit($form, &$form_state) {
* @ingroup themeable
* @see taxonomy_overview_vocabularies()
*/
-function theme_taxonomy_overview_vocabularies($form) {
+function theme_taxonomy_overview_vocabularies($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$rows = array();
foreach (element_children($form) as $key) {
@@ -592,7 +595,10 @@ function taxonomy_overview_terms_submit($form, &$form_state) {
* @ingroup themeable
* @see taxonomy_overview_terms()
*/
-function theme_taxonomy_overview_terms($form) {
+function theme_taxonomy_overview_terms($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$page_increment = $form['#page_increment'];
$page_entries = $form['#page_entries'];
$back_peddle = $form['#back_peddle'];
diff --git modules/taxonomy/taxonomy.module modules/taxonomy/taxonomy.module
index 23e0e5d..d639a30 100644
--- modules/taxonomy/taxonomy.module
+++ modules/taxonomy/taxonomy.module
@@ -1455,7 +1455,10 @@ function _taxonomy_term_select($title, $value, $vocabulary_id, $description, $mu
*
* @ingroup themeable
*/
-function theme_taxonomy_term_select($element) {
+function theme_taxonomy_term_select($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
return theme('select', $element);
}
@@ -1876,7 +1879,10 @@ function taxonomy_field_formatter_info() {
/**
* Theme function for 'link' term field formatter.
*/
-function theme_field_formatter_taxonomy_term_link($element) {
+function theme_field_formatter_taxonomy_term_link($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$term = $element['#item']['taxonomy_term'];
return l($term->name, taxonomy_term_path($term));
}
@@ -1884,7 +1890,10 @@ function theme_field_formatter_taxonomy_term_link($element) {
/**
* Theme function for 'plain' term field formatter.
*/
-function theme_field_formatter_taxonomy_term_plain($element) {
+function theme_field_formatter_taxonomy_term_plain($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$term = $element['#item']['taxonomy_term'];
return $term->name;
}
diff --git modules/trigger/trigger.admin.inc modules/trigger/trigger.admin.inc
index f3f0257..1344af6 100644
--- modules/trigger/trigger.admin.inc
+++ modules/trigger/trigger.admin.inc
@@ -266,7 +266,10 @@ function trigger_assign_form_submit($form, $form_state) {
*
* @ingroup themeable
*/
-function theme_trigger_display($element) {
+function theme_trigger_display($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$header = array();
$rows = array();
if (count($element['assigned']['#value'])) {
diff --git modules/update/update.report.inc modules/update/update.report.inc
index 83778e9..fa45dd5 100644
--- modules/update/update.report.inc
+++ modules/update/update.report.inc
@@ -25,7 +25,10 @@ function update_status() {
*
* @ingroup themeable
*/
-function theme_update_report($data) {
+function theme_update_report($variables) {
+ extract($variables, EXTR_SKIP);
+ // @todo remove extract() if possible and check hook_theme defaults.
+
$last = variable_get('update_last_check', 0);
$output = '