function xmlsitemap_tools in XML sitemap 6
Form builder; return the tools form.
1 string reference to 'xmlsitemap_tools'
- xmlsitemap_menu in ./
xmlsitemap.module - Implementation of hook_menu().
File
- ./
xmlsitemap.admin.inc, line 106 - XML sitemap settings UI.
Code
function xmlsitemap_tools() {
$form['options'] = array(
'#type' => 'fieldset',
'#title' => t('Operations'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
'#prefix' => '<div class="container-inline">',
'#suffix' => '</div>',
);
$options = array();
foreach (module_invoke_all('xmlsitemap_operations') as $operation => $info) {
$options[$operation] = $info['label'];
}
reset($options);
$form['options']['operation'] = array(
'#type' => 'select',
'#options' => $options,
'#default_value' => key($options),
);
$form['options']['submit'] = array(
'#type' => 'submit',
'#value' => t('Apply'),
'#submit' => array(
'xmlsitemap_tools_submit',
),
);
return $form;
}