function kwresearch_get_report_data_options in Keyword Research 6
Same name and namespace in other branches
- 7 kwresearch.module \kwresearch_get_report_data_options()
returns data options for reports report: stats|site|page|tax
4 calls to kwresearch_get_report_data_options()
- kwresearch_admin_settings in ./
kwresearch.admin.inc - Displays the form for the standard settings tab.
- kwresearch_get_report_data_options_defaults in includes/
stats_report.inc - enables all values by default
- kwresearch_keywords_list_page in includes/
site_report.inc - Generates site keywords report page
- theme_keyword_stats_report in includes/
stats_report.inc - Themes keyword stats report
File
- ./
kwresearch.module, line 935
Code
function kwresearch_get_report_data_options($report = 'stats', $th = FALSE) {
if ($report == 'stats') {
$options = array(
'site_priority' => $th ? t('Site priority') : t('Keyword\'s priority for the site'),
'site_value' => $th ? t('Site value') : t('Keyword\'s value for the site'),
//'page_priority' => ($th)?t('Page priority'):t('Keyword\'s priority for the page'),
'total_dailyest' => $th ? t('Total daily') : t('Total daily estimated searches'),
'competition' => $th ? t('Competition') : t('Rating of competition for keyword'),
'bid' => $th ? t('Bid') : t('Recommended bid price for keyword'),
'google_dailyest' => $th ? t('Google daily') : t('Google daily estimated searches'),
'yahoo_dailyest' => $th ? t('Yahoo! daily') : t('Yahoo! daily estimated searches'),
'bing_dailyest' => $th ? t('Bing daily') : t('Bing daily estimated searches'),
);
}
elseif ($report == 'site') {
$options = array(
'daily_volume' => $th ? t('Total daily') : t('Total daily estimated searches'),
'competition' => $th ? t('Competition') : t('Rating of competition for keyword'),
'bid' => $th ? t('Bid') : t('Recommended bid price for keyword'),
'google_dailyest' => $th ? t('Google daily') : t('Google daily estimated searches'),
'yahoo_dailyest' => $th ? t('Yahoo! daily') : t('Yahoo! daily estimated searches'),
'bing_dailyest' => $th ? t('Bing daily') : t('Bing daily estimated searches'),
);
}
// make api calls
$sources = module_invoke_all('kwresearch_sources');
if (is_array($sources)) {
foreach ($sources as $aid => $source) {
if (is_array($source[$report . '_report_columns'])) {
foreach ($source[$report . '_report_columns'] as $k => $v) {
$options[$k] = $v;
}
}
}
}
return $options;
}