Function __global->convert_cms_type_codes

Definitions

sources/content.php

  • Find a different content type code from the one had.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$type_has ID_TEXT No No required parameter addon content_type meta_hook search_hook seo_type_code feedback_type_code permission_module module table commandr_filesystem_hook rss_hook attachment_hook notification_hook sitemap_hook N/A Content type we know
$type_id ID_TEXT No No required parameter N/A N/A Content type ID we know
$type_wanted ID_TEXT No No required parameter addon content_type meta_hook search_hook seo_type_code feedback_type_code permission_module module table commandr_filesystem_hook rss_hook attachment_hook notification_hook sitemap_hook N/A Desired content type

Returns

  • Corrected content type (blank: could not find)
  • Type: mixed
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find a different content type code from the one had.
 *
 * @param  ID_TEXT $type_has Content type we know
 * @set addon content_type meta_hook search_hook seo_type_code feedback_type_code permission_module module table commandr_filesystem_hook rss_hook attachment_hook notification_hook sitemap_hook
 * @param  ID_TEXT $type_id Content type ID we know
 * @param  ID_TEXT $type_wanted Desired content type
 * @set addon content_type meta_hook search_hook seo_type_code feedback_type_code permission_module module table commandr_filesystem_hook rss_hook attachment_hook notification_hook sitemap_hook
 * @return mixed Corrected content type (blank: could not find)
 */

function convert_cms_type_codes(string $type_has, string $type_id, string $type_wanted)