function theme_example_node_color
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 simplifed theme function purely for illustrative purposes.
Related topics
1 theme call to theme_example_node_color()
- node_example_field_formatter_view in node_example/
node_example.module - Implements hook_field_formatter_view().
File
-
node_example/
node_example.module, line 276
Code
function theme_example_node_color($variables) {
$output = '<span style="background-color: #ccc; padding: 1em; margin-bottom: 1em; float: left; color: ' . $variables['color'] . '">' . $variables['color'] . '</span>';
return $output;
}