Skip to content
  • A look at the splat operator (...)

    Submitted by Andrej Galuf on 17.4.2017.

    Today we are going to look at something that's been missing from PHP for far too long - the ... token, a.k.a. splat operator. The splat operator helps us to convert an array of values to function's arguments.

    Read more
  • User Experience in organization's internal systems

    Submitted by Andrej Galuf on 4.2.2016.

    When I started this blog a few months ago, I've hinted at one topic that I haven't touched yet - the importance of User Experience for Enterprise Resource Planning, Intranet and other intra-organizational systems.

    Read more
  • A quick introduction to Drupal Entities

    Submitted by Andrej Galuf on 25.11.2015.

    Drupal has always been known for its immense flexibility and exceptional adaptability. The CCK module's field system was a large step in the flexibility direction, but it had its limits. The fields were only really usable on content types (read: nodes), leading to additional modules which extended profiles, provided forms, a shopping cart, forums and more. But in Drupal 7, a new unified API, the entity system, was introduced that aimed to unify the various elements of the site - and it changed everything.

    Read more
  • Drupal 7: Setting title module field programmatically

    Submitted by Andrej Galuf on 25.11.2015.

    Hello and welcome back to Drupal Tips and Tricks. Today we will be looking at the Title module in combination with Entity Translation and we will be trying to change the value of the title field programmatically.

    Read more
  • Undefined index: field in field_widget_field()

    Submitted by Andrej Galuf on 7.11.2015.

    A few days ago, my colleague was building a custom form in Drupal 7. Everything was going great until he added a file field, at which point all hell broke loose. The data didn't submit and he received these notices:

    Notice: Undefined index: field in field_widget_field() (Row 578 of ...)
    Notice: Undefined index: instance in field_widget_instance() (Row 603 of ....)

    Since the field was using a custom widget, we were first debugging there, until we finally found the real culprit somewhere completely else: passing by reference.

    Read more
  • Responsive Web Design, RESS and Mobile-only

    Submitted by Andrej Galuf on 31.10.2015.
    A short history and quick introduction to Responsive Web Design concepts.
    Read more
  • A new design, now with a blog

    Submitted by Andrej Galuf on 10.10.2015.
    These last few years have lead to great many new adventures, experiences and revelations, both professionally and personally. For the past year or so, this website has been left almost unattended, as I was trying to figure out what to do with it. Now a team leader of web development at an international trading company, I was no longer seeking work as a freelancer, so most of its original purpose was gone. Instead I've decided to realign this website's goals, to share my experiences, tricks I've learned along the way and generally be a helpful hand to the open source community that has been so good to me for so long.
    Read more