You are here

protected function DrupalDefaultMetaTag::maxlength in Metatag 7

Identify the maximum length of which strings will be allowed.

Return value

int Maxlenght.

2 calls to DrupalDefaultMetaTag::maxlength()
DrupalDefaultMetaTag::truncate in ./metatag.inc
Shorten a string to a certain length using ::textSummary().
DrupalTextMetaTag::getForm in ./metatag.inc
Build the form for this meta tag.

File

./metatag.inc, line 316
Metatag primary classes.

Class

DrupalDefaultMetaTag
The default meta tag class from which all others inherit.

Code

protected function maxlength() {
  if (isset($this->info['maxlength'])) {
    return intval(variable_get('metatag_maxlength_' . $this->info['name'], $this->info['maxlength']));
  }
  return 0;
}