Commit 466ea41c authored by Dave Reid's avatar Dave Reid
Browse files

by Dave Reid: Fixed coder warnings and adjusted bundle type label.

parent 88b0a3a9
...@@ -336,11 +336,8 @@ function xmlsitemap_add_form_entity_summary(&$form, $entity, array $entity_info) ...@@ -336,11 +336,8 @@ function xmlsitemap_add_form_entity_summary(&$form, $entity, array $entity_info)
'data' => $totals['visible'], 'data' => $totals['visible'],
'header' => TRUE, 'header' => TRUE,
), ),
/*$totals['total'],
$totals['indexed'],
$totals['visible'],*/
); );
$form['summary'] = array( $form['summary'] = array(
'#theme' => 'table', '#theme' => 'table',
'#header' => $header, '#header' => $header,
'#rows' => $rows, '#rows' => $rows,
......
...@@ -655,7 +655,7 @@ function xmlsitemap_var($name, $default = NULL) { ...@@ -655,7 +655,7 @@ function xmlsitemap_var($name, $default = NULL) {
$defaults = xmlsitemap_variables(); $defaults = xmlsitemap_variables();
} }
$name = 'xmlsitemap_'. $name; $name = 'xmlsitemap_' . $name;
// @todo Remove when stable. // @todo Remove when stable.
if (!isset($defaults[$name])) { if (!isset($defaults[$name])) {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
function xmlsitemap_menu_xmlsitemap_link_info() { function xmlsitemap_menu_xmlsitemap_link_info() {
$types['menu'] = array( $types['menu'] = array(
'label' => t('Menu'), 'label' => t('Menu'),
'bundle label' => t('Menu title'), 'bundle label' => t('Menu'),
'base table' => 'menu_links', 'base table' => 'menu_links',
'object keys' => array( 'object keys' => array(
'id' => 'mlid', 'id' => 'mlid',
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* Implements hook_entity_info_alter(). * Implements hook_entity_info_alter().
*/ */
function xmlsitemap_taxonomy_entity_info_alter(&$entity_info) { function xmlsitemap_taxonomy_entity_info_alter(&$entity_info) {
$entity_info['taxonomy_term']['bundle label'] = t('Vocabulary name'); $entity_info['taxonomy_term']['bundle label'] = t('Vocabulary');
$entity_info['taxonomy_term']['xmlsitemap'] = array( $entity_info['taxonomy_term']['xmlsitemap'] = array(
'process callback' => 'xmlsitemap_taxonomy_xmlsitemap_process_taxonomy_term_links', 'process callback' => 'xmlsitemap_taxonomy_xmlsitemap_process_taxonomy_term_links',
); );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment