| 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:41 | skipper_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:53 | mstenta[m] | On drupal 6 |
| 15:53 | mstenta[m] | I've heard good things about drupalize.me |
| 15:53 | mstenta[m] | I learned with "Developing Drupal" book years ago |
| 15:53 | mstenta[m] | This is a great set of examples: drupal.org/project/examples |
| 16:01 | * | alfah_a[m] has joined |
| 16:55 | skipper_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:56 | mstenta[m] | No but depending on the change you may need to clear cache (s) |
| 17:37 | skipper_is[m] | Under Performance? |
| 17:38 | skipper_is[m] | Also, the main FarmOS menu bar, what is the name of it? It isn't the 'navigation' menu is it? |
| 17:48 | mstenta[m] | <skipper_is[m] "Under Performance?"> Yep! And there are other ways too, like Drush |
| 17:48 | mstenta[m] | <skipper_is[m] "Also, the main FarmOS menu bar, "> 'farm' |
| 17:51 | skipper_is[m] | And can a module only have one modulename_menu() hook? |
| 17:51 | skipper_is[m] | I tried modulename_2_menu() but it didnt work |
| 17:52 | mstenta[m] | Yes but it can add multiple menu items |
| 17:52 | skipper_is[m] | Ooh, so you'd just have an items[] array of arrays? |
| 17:53 | mstenta[m] | Yup |
| 17:53 | mstenta[m] | Google "Drupal hook_menu" |
| 17:53 | mstenta[m] | The API docs are good |
| 17:53 | mstenta[m] | I'm outside right now, otherwise I'd be more helpful :-) |
| 17:53 | skipper_is[m] | Ah no worries :) |
| 17:53 | skipper_is[m] | Cheers anyway! |
| 18:12 | * | uploaded an image: image.png (104KB) < matrix.org/_matrix/media/v1/download/mat > |
| 18:13 | skipper_is[m] | Well, I'm proud of thjat |
| 18:13 | skipper_is[m] | *that |
| 18:13 | mstenta[m] | Nice!!! |
| 18:14 | mstenta[m] | Hook area details right? |
| 18:14 | mstenta[m] | (something like that) :-) |
| 18:14 | mstenta[m] | FYI the available hooks are generally documented in MODULENAME.api.php |
| 18:15 | skipper_is[m] | ...Now he tells me... |
| 18:16 | skipper_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:16 | skipper_is[m] | and visa versa |
| 18:16 | mstenta[m] | Haha |
| 18:16 | mstenta[m] | Oh cool |
| 18:16 | skipper_is[m] | Some of my colleagues work in acres, and I prefer hectares |
| 18:17 | skipper_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:18 | skipper_is[m] | And is that going to massively slow it down? |
| 18:18 | mstenta[m] | Might be |
| 18:18 | mstenta[m] | I don't think it'll slow it down much |
| 18:18 | skipper_is[m] | Okay, it does take a second or 2 for the popup to appear |
| 18:18 | mstenta[m] | But we could put some caching in that function |
| 18:19 | skipper_is[m] | Oh that is too complex for me at this stage |
| 18:19 | mstenta[m] | Look up drupal_static function not too hard |
| 18:20 | mstenta[m] | Yea I forget why the popup is slow... It's an Ajax request so maybe that's why |
| 18:20 | skipper_is[m] | Ah okay, so possibly not because of the additional call |
| 18:21 | mstenta[m] | Yea probably not |
| 18:21 | skipper_is[m] | 2.09s it takes, I can live with that |
| 18:40 | mstenta[m] | Ugh that's too long |
| 18:40 | mstenta[m] | I should really get PHP profiler set up |
| 18:42 | skipper_is[m] | It is probably my server |
| 18:43 | * | uploaded an image: image.png (169KB) < matrix.org/_matrix/media/v1/download/mat > |
| 18:43 | skipper_is[m] | Happy with that :) |
| 18:43 | mstenta[m] | Nice!! |
| 18:58 | * | h8x0rd has quit (Ping timeout: 272 seconds) |
| 19:44 | skipper_is[m] | github.com/Skipper-is/farm_area_combined |
| 21:46 | * | h8x0rd has joined |
| 23:14 | * | h8x0rd has quit (Ping timeout: 244 seconds) |