You are here

function xmlsitemap_placeholders in XML sitemap 5.2

Generate placeholders for an array of query arguments of a single type. Given a database field type, return correct %-placeholders to embed in a query. This is the backport of a function present in Drupal 6.

Parameters

$arguments: An array with at least one element.

$type: The database type of a field (e.g. 'int', 'text', or 'varchar').

Return value

An array of placeholders for the passed database type.

4 calls to xmlsitemap_placeholders()
xmlsitemap_node_xmlsitemap_links in xmlsitemap_node/xmlsitemap_node.module
Implementation of hook_xmlsitemap_links().
xmlsitemap_term_nodeapi in xmlsitemap_term/xmlsitemap_term.module
Implementation of hook_nodeapi().
xmlsitemap_term_xmlsitemap_links in xmlsitemap_term/xmlsitemap_term.module
Implementation of hook_xmlsitemap_links().
xmlsitemap_user_user in xmlsitemap_user/xmlsitemap_user.module
Implementation of hook_user().

File

xmlsitemap/xmlsitemap.module, line 390
Creates a sitemap compatible with the sitemaps.org schema.

Code

function xmlsitemap_placeholders($arguments, $type = 'int') {
  $placeholder = xmlsitemap_placeholder($type);
  return implode(',', array_fill(0, count($arguments), $placeholder));
}