function googlenews_admin_settings in Google News sitemap 6
Same name and namespace in other branches
- 5 googlenews.module \googlenews_admin_settings()
- 7 googlenews.admin.inc \googlenews_admin_settings()
Form builder; administration settings.
1 string reference to 'googlenews_admin_settings'
- googlenews_menu in ./
googlenews.module - Implementation of hook_menu().
File
- ./
googlenews.module, line 75 - Provides a Google News sitemap within your site using the url: http://www.yoursite.com/googlenews.xml
Code
function googlenews_admin_settings() {
$node_types = node_get_types('names');
$form['googlenews_node_types'] = array(
'#type' => 'checkboxes',
'#title' => t('Select the content types to include in the <a href="@news-sitemap">news sitemap</a>', array(
'@news-sitemap' => url('googlenews.xml'),
)),
'#default_value' => variable_get('googlenews_node_types', array_keys($node_types)),
'#options' => $node_types,
);
$form['array_filter'] = array(
'#type' => 'value',
'#value' => TRUE,
);
return system_settings_form($form);
}