1 node_type_example.module theme_node_type_example_color($variables)

A custom theme function.

By using this function to format our node-specific information, themes can override this presentation if they wish. This is a simplified theme function purely for illustrative purposes.

Related topics

File

modules/examples/node_type_example/node_type_example.module, line 212
Hook implementations for the Node Type Example module.

Code

function theme_node_type_example_color($variables) {
  $output = '<span style="background-color: #ccc; padding: 1em; margin-bottom: 1em; float: left; color: ' . $variables['color'] . '">' . $variables['color'] . '</span>';
  return $output;
}