| 8 |
* @todo get rid of coder_tough_love_remove_known_keys once concat bug fixed. |
* @todo get rid of coder_tough_love_remove_known_keys once concat bug fixed. |
| 9 |
* @todo <a is allowed inside a t() for translating purposes. |
* @todo <a is allowed inside a t() for translating purposes. |
| 10 |
* @todo <a href="@..." > but disallow <a href="http://.... >. |
* @todo <a href="@..." > but disallow <a href="http://.... >. |
|
* @todo add status warning when pspell isn't enabled. |
|
| 11 |
*/ |
*/ |
| 12 |
|
|
| 13 |
/** |
/** |
| 110 |
'#source' => 'quote', |
'#source' => 'quote', |
| 111 |
'#type' => 'callback', |
'#type' => 'callback', |
| 112 |
'#value' => '_coder_tough_love_sentence_style', |
'#value' => '_coder_tough_love_sentence_style', |
| 113 |
'#warning' => t('Use sentence case, not title case, for end-user strings. (<a href="http://en.wikipedia.org/wiki/Capitalization#Headings_and_publication_titles">Wikipedia</a>)'), |
'#warning' => t('Use sentence case, not title case, for end-user strings. (<a href="@url">Wikipedia</a>)', array('@url' => 'http://en.wikipedia.org/wiki/Capitalization#Headings_and_publication_titles')), |
| 114 |
), |
), |
| 115 |
array( |
array( |
| 116 |
'#case-sensitive' => TRUE, |
'#case-sensitive' => TRUE, |
| 135 |
array( |
array( |
| 136 |
'#type' => 'regex', |
'#type' => 'regex', |
| 137 |
'#value' => '\s+(chop|close|die|dir|diskfreespace|doubleval|fputs|ini_alter|is_(double|integer|long|real|writeable)|join|magic_quotes_runtime|pos|rewind|show_source|sizeof|strchr)\(', |
'#value' => '\s+(chop|close|die|dir|diskfreespace|doubleval|fputs|ini_alter|is_(double|integer|long|real|writeable)|join|magic_quotes_runtime|pos|rewind|show_source|sizeof|strchr)\(', |
| 138 |
'#warning' => t('Use PHP\'s master function, not an alias. (<a href="http://www.php.net/manual/en/aliases.php">List of PHP aliases</a>)'), |
'#warning' => t('Use PHP\'s master function, not an alias. (<a href="@url">List of PHP aliases</a>)', array('@url' => 'http://www.php.net/manual/en/aliases.php')), |
| 139 |
), |
), |
| 140 |
array( |
array( |
| 141 |
'#source' => 'all', |
'#source' => 'all', |
| 438 |
function _coder_tough_love_settings_pspell_personal_default() { |
function _coder_tough_love_settings_pspell_personal_default() { |
| 439 |
return |
return |
| 440 |
'api, asc, autocomplete, baseURL, bio, cck, checkbox, checkboxes, CiviCRM, colspan, '. |
'api, asc, autocomplete, baseURL, bio, cck, checkbox, checkboxes, CiviCRM, colspan, '. |
| 441 |
'desc, devel, Doxygen, Drupal, enctype, Facebook, fieldgroup, fieldset, geocode, ' . |
'desc, devel, Doxygen, Drupal, enctype, Facebook, fieldgroup, fieldset, geocode, '. |
| 442 |
'geocoding, Google, href, HTML, imagefield, irc, javascript, json, metadata, Morbus, ' . |
'geocoding, Google, href, HTML, imagefield, irc, javascript, json, metadata, Morbus, '. |
| 443 |
'mysql, mysqli, ncount, nid, null, pathauto, pgsql, PHP, pid, PO, presave, regex, signup, ' . |
'mysql, mysqli, ncount, nid, null, pathauto, pgsql, PHP, pid, PO, presave, pspell, regex, '. |
| 444 |
'simplenews, tablename, textarea, textfield, tid, timestamp, trellon, uid, Unix, ' . |
'signup, simplenews, tablename, textarea, textfield, tid, timestamp, trellon, uid, Unix, '. |
| 445 |
'URL, URLs, username, varchar, vid, wiki, Wikipedia, XHTML'; |
'URL, URLs, username, varchar, vid, wiki, Wikipedia, XHTML'; |
| 446 |
} |
} |
| 447 |
|
|