drupal_ucfirst

Versions
4.7 – 7
drupal_ucfirst($text)

Capitalize the first letter of a UTF-8 string.

▾ 5 functions call drupal_ucfirst()

node_add in modules/node/node.module
Present a node submission form or a set of links to such forms.
node_menu in modules/node/node.module
Implementation of hook_menu().
system_modules in modules/system/system.module
Menu callback; provides module enable/disable interface.
system_modules_confirm_form in modules/system/system.module
theme_block_admin_display in modules/block/block.module
Theme main block administration form submission.

Code

includes/unicode.inc, line 422

<?php
function drupal_ucfirst($text) {
  // Note: no mbstring equivalent!
  return drupal_strtoupper(drupal_substr($text, 0, 1)) . drupal_substr($text, 1);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.