pass variable (json array of objects) from custom module to tpl.php (node--xyz.tpl.php)

I am trying to pass few parameters to custom module (custom.module) and returns getting JSON data ($results->data) I want to pass that variable data to node--xyz.tpl.php content template. I may not following drupal best practice, but I am trying to do it. How can I pass $results->data to node--xyz.tpl.php (that's why I need to send data). I needed some help or if you have any other suggestions. I am using drupal 7. 

OpenID Connect distribution?

Is anyone aware of a Drupal distribution that gives you an OpenID Connect (https://en.wikipedia.org/wiki/OpenID_Connect) provider out of the box? I know there are various modules for OpenID and OIDC, but I'm looking first to see if there's a distribution to explore first. Thanks

Knowledge base module?

Is there a module that functions like a knowledge base? I'm thinking of putting together a site for work that lets users post technical information, code, concepts etc. that they want to capture and make available for all developers. I know I could use a wiki but I don't really like them. I searched the modules a few times but either I used the wrong keywords or a module doesn't exist. A module that is a simplified StackOverflow would be interesting but I'm open to something simpler as the users will all be trusted. Thanks

module warnings...

  • Notice: Undefined offset: 10 in user_node_load() (line 3697 of ..................\drupal7\modules\user\user.module).
  • Notice: Trying to get property of non-object in user_node_load() (line xxxx of ................\drupal7\modules\user\user.module).

How do I find all the fields linked to a variable which I get from variable_get?

Hi!

I've inherited from a Drupal website and so far running it has been ok. Now there are a few things missing and I'm looking into modifying current theme and modules made for the site.

So some of the 'site' information are obtain through variable_get('custom_site_info')['xxxx'] such as logo, url , etc... . I can see the missing information through the GUI but how to I find there variable names? More specifically I am trying to get the alt value from the site settings and I've failed to extract that value.

Thank you.

Frank

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x