Function __global->stats_generate_graph_form_fields

Definitions

sources/stats.php

  • Generate a stats graph filter form.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$graph_name string required parameter N/A N/A Graph name
$hook_ob ?object Null N/A N/A Hook object (null: look it up using $graph_name)
$graph_details ?array Null N/A N/A Graph details (null: look it up using $graph_name)
$filters array [] N/A N/A Filter settings to take precedence
$pivot ?mixed Null N/A N/A Pivot value to take precedence (null: none)
$for_kpi boolean False N/A N/A Whether this is for setting up a KPI

Return

  • A pair: Graph filter fields, Hidden fields (null: could not generate anything)
  • Type: ?array
  • Set: N/A
  • Range: N/A