< 012019-08-02⋎03 >

farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Feature requests and bug reports: github.com/farmOS/farmOS/issuesSet by ChanServ on 2018-08-16 at 14:32
08:13*JustTB has joined
14:56*Unruly247 has joined
14:57*Unruly247 has quit (Remote host closed the connection)
14:57*Unruly247 has joined
15:41skipper_is[m]Do you know any good Drupal tutorials for developing my own modules?
15:48*Unruly247 has quit (Read error: Connection reset by peer)
15:53mstenta[m]On drupal 6
15:53mstenta[m]I've heard good things about drupalize.me
15:53mstenta[m]I learned with "Developing Drupal" book years ago
15:53mstenta[m]This is a great set of examples: drupal.org/project/examples
16:01*alfah_a[m] has joined
16:55skipper_is[m]Ah nice, cheers. If you make a change to a module, like add a new form or menu, do you need to disable and re-enable it to see teh change?
16:56mstenta[m]No but depending on the change you may need to clear cache (s)
17:37skipper_is[m]Under Performance?
17:38skipper_is[m]Also, the main FarmOS menu bar, what is the name of it? It isn't the 'navigation' menu is it?
17:48mstenta[m]<skipper_is[m] "Under Performance?"> Yep! And there are other ways too, like Drush
17:48mstenta[m]<skipper_is[m] "Also, the main FarmOS menu bar, "> 'farm'
17:51skipper_is[m]And can a module only have one modulename_menu() hook?
17:51skipper_is[m]I tried modulename_2_menu() but it didnt work
17:52mstenta[m]Yes but it can add multiple menu items
17:52skipper_is[m]Ooh, so you'd just have an items[] array of arrays?
17:53mstenta[m]Yup
17:53mstenta[m]Google "Drupal hook_menu"
17:53mstenta[m]The API docs are good
17:53mstenta[m]I'm outside right now, otherwise I'd be more helpful :-)
17:53skipper_is[m]Ah no worries :)
17:53skipper_is[m]Cheers anyway!
18:12*uploaded an image: image.png (104KB) < matrix.org/_matrix/media/v1/download/mat >
18:13skipper_is[m]Well, I'm proud of thjat
18:13skipper_is[m]*that
18:13mstenta[m]Nice!!!
18:14mstenta[m]Hook area details right?
18:14mstenta[m](something like that) :-)
18:14mstenta[m]FYI the available hooks are generally documented in MODULENAME.api.php
18:15skipper_is[m]...Now he tells me...
18:16skipper_is[m]Yea, hook area details, it is just going to display the units in the other unit, so if it is Ha, it'll give it in acres
18:16skipper_is[m]and visa versa
18:16mstenta[m]Haha
18:16mstenta[m]Oh cool
18:16skipper_is[m]Some of my colleagues work in acres, and I prefer hectares
18:17skipper_is[m]The only concern I have is if I call farm_area_calculate_area($id, FALSE) is it calculating the area twice, one through the main area_details once through mine?
18:18skipper_is[m]And is that going to massively slow it down?
18:18mstenta[m]Might be
18:18mstenta[m]I don't think it'll slow it down much
18:18skipper_is[m]Okay, it does take a second or 2 for the popup to appear
18:18mstenta[m]But we could put some caching in that function
18:19skipper_is[m]Oh that is too complex for me at this stage
18:19mstenta[m]Look up drupal_static function not too hard
18:20mstenta[m]Yea I forget why the popup is slow... It's an Ajax request so maybe that's why
18:20skipper_is[m]Ah okay, so possibly not because of the additional call
18:21mstenta[m]Yea probably not
18:21skipper_is[m]2.09s it takes, I can live with that
18:40mstenta[m]Ugh that's too long
18:40mstenta[m]I should really get PHP profiler set up
18:42skipper_is[m]It is probably my server
18:43*uploaded an image: image.png (169KB) < matrix.org/_matrix/media/v1/download/mat >
18:43skipper_is[m]Happy with that :)
18:43mstenta[m]Nice!!
18:58*h8x0rd has quit (Ping timeout: 272 seconds)
19:44skipper_is[m]github.com/Skipper-is/farm_area_combined
21:46*h8x0rd has joined
23:14*h8x0rd has quit (Ping timeout: 244 seconds)

< 012019-08-02⋏03 >