function example_drupal_set_title in Coder 7.2
Same name and namespace in other branches
- 7 coder_upgrade/tests/old/samples/example.module \example_drupal_set_title()
File
- coder_upgrade/
tests/ old/ samples/ example.module, line 965
Code
function example_drupal_set_title() {
// drupal_set_title() -- Change the next line but leave this alone
drupal_set_title($node->title);
drupal_set_title(check_plain($node->title));
drupal_set_title(t("@name's blog", array(
'@name' => $account->name,
)));
drupal_set_title(t("@name's blog is %status", array(
'@name' => $account->name,
'%status' => 'very popular',
)));
drupal_set_title(t("@name's blog is %status in !country", array(
'@name' => $account->name,
'%status' => 'very popular',
'!country' => 'my country',
)));
if (drupal_set_title(t("@name's blog", array(
'@name' => $account->name,
)))) {
}
drupal_set_title('check_plain' . $node->title);
drupal_set_title('check_plain' . check_plain($node->title . 'xxx') . 'yyy' . check_plain($node->title2));
}