function yandex_metrics_filter_form_submit in Yandex.Metrics 7
Same name and namespace in other branches
- 6 yandex_metrics.module \yandex_metrics_filter_form_submit()
Implementation of hook_submit for yandex_metrics_time_interval_form form.
_state
Parameters
array $form:
File
- ./
yandex_metrics.module, line 244 - The main code of Yandex.Metrics module.
Code
function yandex_metrics_filter_form_submit($form, &$form_state) {
$filter = $form_state['values']['filter'];
if (!empty($filter)) {
drupal_goto('admin/reports/yandex_metrics_summary/' . $filter);
}
}