I am making a custom module in which I am calling a function inside another function. I have defined that function in the class but I am getting this error call to undefined function gcd. I am sharing the code. Kindly look at the code and tell me what I am doing wrong.
I've an entity form with some controls; one is a Select which show some elements; I need to send a postback (not ajax) when a user choose one of the elements and manage it as a callback; something like an action but with a select instead a button.
I have a Drupal REST which bring me cached data, working as expected.
Now, I want some code to run before that response is generated. I need to do always a check in order to decide if to invalidate that REST cache or not, before it will be generated and sent to user.
I am trying to exclude fields if they are empty, on the portfolio page I am creating with node--portfolio.tpl.php. I have tried several different ways and variations on each including:
in a module, I try to make a link from an image, but I get the code instead of image. I red that I need to use "html TRUE" but I still do something wrong
I’m trying to create a dynamic query, the query logic conditions needed are: AND, and OR.
The main query will include two sub queries.
The ConditionInterface::condition documentation states that:
“If called with 1 parameter, it should be a ConditionInterface that in itself forms a valid where clause. Use e.g. to build clauses with nested AND's and OR's.”