xmlsitemap_file_form_alter($form_id, &$form)
contributions/modules/xmlsitemap/xmlsitemap_file/xmlsitemap_file.module, line 85
Implementation of hook_form_alter().
| Name | Description |
|---|---|
| XML Sitemap | Notify search engines of site updates. |
function xmlsitemap_file_form_alter($form_id, &$form) {
switch ($form_id) {
case $form['type']['#value'] .'_node_form':
$node = $form['#node'];
if (is_array($node->files)) {
foreach ($node->files as $file) {
if ($file->list) {
$form['xmlsitemap_file_list'][$file->fid] = array('#type' => 'value', '#value' => $file->list);
}
}
}
break;
case 'system_file_system_settings':
$form['#submit']['xmlsitemap_update_sitemap'] = array();
break;
}
}