/[drupal]/contributions/modules/coder_tough_love/coder_tough_love.module
ViewVC logotype

Diff of /contributions/modules/coder_tough_love/coder_tough_love.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.3, Thu Nov 20 14:18:23 2008 UTC revision 1.1.2.4, Thu Nov 20 15:06:29 2008 UTC
# Line 8  Line 8 
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://.... >.
11     * @todo add status warning when pspell isn't enabled.
12   */   */
13    
14  /**  /**
# Line 110  function coder_tough_love_reviews() { Line 111  function coder_tough_love_reviews() {
111        '#source' => 'quote',        '#source' => 'quote',
112        '#type' => 'callback',        '#type' => 'callback',
113        '#value' => '_coder_tough_love_sentence_style',        '#value' => '_coder_tough_love_sentence_style',
114        '#warning' => t('Use sentence case, not title case, for end-user strings. (!link)', array('!link' => l(t('Wikipedia'), 'http://en.wikipedia.org/wiki/Capitalization#Headings_and_publication_titles'))),        '#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>)'),
115      ),      ),
116      array(      array(
117        '#case-sensitive' => TRUE,        '#case-sensitive' => TRUE,
# Line 135  function coder_tough_love_reviews() { Line 136  function coder_tough_love_reviews() {
136      array(      array(
137        '#type' => 'regex',        '#type' => 'regex',
138        '#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)\(',
139        '#warning' => t('Use PHP\'s master function, not an alias.'),        '#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>)'),
140      ),      ),
141      array(      array(
142        '#source' => 'all',        '#source' => 'all',
# Line 440  function _coder_tough_love_settings_pspe Line 441  function _coder_tough_love_settings_pspe
441      'api, asc, autocomplete, baseURL, bio, cck, checkbox, checkboxes, CiviCRM, colspan, '.      'api, asc, autocomplete, baseURL, bio, cck, checkbox, checkboxes, CiviCRM, colspan, '.
442      'desc, devel, Doxygen, Drupal, enctype, Facebook, fieldgroup, fieldset, geocode, ' .      'desc, devel, Doxygen, Drupal, enctype, Facebook, fieldgroup, fieldset, geocode, ' .
443      'geocoding, Google, href, HTML, imagefield, irc, javascript, json, metadata, Morbus, ' .      'geocoding, Google, href, HTML, imagefield, irc, javascript, json, metadata, Morbus, ' .
444      'mysql, mysqli, ncount, nid, null, pathauto, pgsql, pid, PO, presave, regex, signup, ' .      'mysql, mysqli, ncount, nid, null, pathauto, pgsql, PHP, pid, PO, presave, regex, signup, ' .
445      'simplenews, tablename, textarea, textfield, tid, timestamp, trellon, uid, Unix, ' .      'simplenews, tablename, textarea, textfield, tid, timestamp, trellon, uid, Unix, ' .
446      'URL, URLs, username, varchar, vid, wiki, Wikipedia, XHTML';      'URL, URLs, username, varchar, vid, wiki, Wikipedia, XHTML';
447  }  }

Legend:
Removed from v.1.1.2.3  
changed lines
  Added in v.1.1.2.4

  ViewVC Help
Powered by ViewVC 1.1.2