Commit 9dcaff65 authored by merlinofchaos's avatar merlinofchaos
Browse files

something left off last commit

parent 704345a2
......@@ -114,13 +114,18 @@ function views_theme_wizard_list_fields($view) {
$output = "These functions will override the given fields for just this view:\n\n";
foreach ($view->field as $field) {
$fieldinfo = $fields[$field['id']];
$output .= "$fieldinfo[name]\n function phptemplate_views_handle_field_{$view->name}_$field[queryname](\$fields, \$field, \$data)\n\n";
$output .= "$fieldinfo[name]\n phptemplate_views_handle_field_{$view->name}_$field[queryname]\n\n";
}
$output .= "\n\nThese functions will override the given fields for every view:\n\n";
foreach ($view->field as $field) {
$fieldinfo = $fields[$field['id']];
$output .= "$fieldinfo[name]\n function phptemplate_views_handle_field_$field[queryname](\$fields, \$field, \$data)\n\n";
}
return $output;
}
function views_theme_wizard_example_field($view) {
$fieldname = 'phptemplate_views_handle_field_' . $view->field[0]['queryname'];
$fieldname = 'phptemplate_views_handle_field_' . $view->name . '_' . $view->field[0]['queryname'];
$output = <<<EOT
/**
* Function to handle a sample field.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment