You are here

function xmlsitemap_sitemap_edit_form_pre_render in XML sitemap 6.2

Same name and namespace in other branches
  1. 7.2 xmlsitemap.admin.inc \xmlsitemap_sitemap_edit_form_pre_render()
1 string reference to 'xmlsitemap_sitemap_edit_form_pre_render'
xmlsitemap_sitemap_edit_form in ./xmlsitemap.admin.inc

File

./xmlsitemap.admin.inc, line 217
Administrative page callbacks for the xmlsitemap module.

Code

function xmlsitemap_sitemap_edit_form_pre_render($form) {
  $visible_children = xmlsitemap_element_get_visible_children($form['context']);
  if (empty($visible_children)) {
    $form['context']['empty'] = array(
      '#type' => 'markup',
      '#value' => '<p>' . t('There are currently no XML sitemap contexts available.') . '</p>',
    );
  }
  return $form;
}