Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Half of these could be methods on HandlerBase, the rest could be in views.module
- views_get_table_join()
- views_break_phrase_string()
- views_break_phrase()
- views_get_timezone()
- views_date_sql_field()
- views_date_sql_format()
- views_date_sql_extract()
Comment | File | Size | Author |
---|---|---|---|
#11 | interdiff.txt | 1.28 KB | tim.plunkett |
#11 | views-1792800-11.patch | 44.04 KB | tim.plunkett |
#7 | views-1792800-7.patch | 44.48 KB | tim.plunkett |
#6 | views-1792800-6.patch | 44.47 KB | tim.plunkett |
#4 | views-1792800-4.patch | 44.16 KB | tim.plunkett |
Comments
Comment #1
dawehnerCouldn't we move things to the HandlerBase if possible but still keep the functions in handlers.inc as we will not need this file on every page load?
Comment #2
tim.plunkettLet's see what happens!
Comment #4
tim.plunkettI was able to avoid moving anything into views.module, yay.
Comment #5
dawehnerWhy not making a static function?
Can you actually call a static function like that?
Comment #6
tim.plunkettIt's not static, it calls $this inside of it.
Yes you can! :)
I did mess up one of the other statics though.
Comment #7
tim.plunkettOh, I missed another thing.
Comment #8
tim.plunkettComment #9
tim.plunkettFollow-up: #1792836: Merge HandlerBase::breakPhrase() and HandlerBase::breakPhraseString() and clean up
Comment #10
aspilicious CreditAttribution: aspilicious commentedSee my helper function remark
Always start with a verb even if it's a helper function.
Newline before return
Makes me sad :(. This needs to die, we need an empty HandlerBase thingie
Some minor stuff
Comment #11
tim.plunkettFixed the first 3, opened the issue for the 4th.
Comment #12
aspilicious CreditAttribution: aspilicious commentedSrry missed that one
Comment #13
tim.plunkettFixed that one before committing.
http://drupalcode.org/project/views.git/commit/55e7bfc