You are here

function example_theme_changes in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_upgrade/tests/old/samples/example.module \example_theme_changes()

File

coder_upgrade/tests/old/samples/example.module, line 1451

Code

function example_theme_changes() {

  // Themes in uninstalled core modules.
  theme('aggregator_summary_items', $summary_items, $source);
  theme('book_export_html', $title, $contents, $depth);

  // Themes in installed core modules.
  // Single quotes.
  theme('user_list', $users, $title);

  // Next two add $width, $height after $path.
  theme('image', $path, $alt, $title, $attributes, $getsize);
  theme('image_style', $style_name, $path, $alt, $title, $attributes, $getsize);
  theme('menu_admin_overview', $title, $name, $description);
  theme('rdf_template_variable_wrapper', $content, $attributes, $context, $inline);

  // Double quotes.
  theme("user_list", $users, $title);

  // Themes in this module.
  // Single quotes.
  theme('example_user_list', $users, $title);
  theme('example_user_list_2', $users1, $title1, $users2, $title2);

  // Double quotes.
  theme("example_user_list", $users, $title);
  theme("example_user_list_2", $users1, $title1, $users2, $title2);

  // Missing themes.
  theme('example_user_list_xx', $users, $title);
  theme("example_user_list_xx", $users, $title);
  theme('xxx', $users, $title);

  // Find the hook assignment.
  $hook = 'user_list';
  theme($hook, $users, $title);

  // Missing variables parameters.
  theme('user_list');
  theme('example_user_list');
}