This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Save data for logged in users

Hi,

I have been asked to work on website personalization. Basically I have to save the selections that the logged in user made in the website, so that when they log in again they dont have to make the same selections again. I have to all this programmatically.

Could you please help me how should I go about it? Any resources would help.

Thanks,

make dynamic block appear on page region

I have a custom module that builds a custom menu depending on an attribute of the node for a basic page. If $nid = 10, then a custom-menu-10 needs to appear in a region for that page. If $nid = 11, then a custom-menu-11 will appear in that same region. In D7, we just threw the custom menu into a menu_tree_all_data and used $variables['my_custom_menu'] to place the html in page.tpl.php.

To learn more in the new D8 theme API, I've created a custom block in mymodule which has the code I need to determine the node-id() and instantiate the custom menu.

Deployable Custom Data Structure and Forms [Drupal 8]

I'm a new Drupal user (though decades of other dev experience) looking for advice on best practices.  I need to develop a multi-client web application with defined (but client-extensible) data model, along with forms for managing data entry and API endpoints to use that data.   Basically I need to build an entire web-app that can be deployed multiple times to different independent clients, but still allow them to take upgrades and bug fixes.

Question regarding hook_node_grants

Question to drupal ninjas here. Is it possible to make hook_node_grants() to use "AND" condition from realm instead of "OR"?
What I mean is if for example I have realm1 and realm2, the current functionality is that if the user has gid(grant id) to at least 1 realm, the user has a grant view. What I'm trying to do is to change it to an "AND" condition so that the user needs at least 1 gid from realm1 and realm2 to have grant view access.

Thanks a lot!

Module Development

Hy guy's,

I'm a beginner in the world of Drupal. Currently, I work on a new module with the "quiz" module (from opigno and Drupal 7) for my internship.

So I need to get the score value at the end of the quiz module inside my module.

In the quiz module, the value is: 

webform complex calculation with graph output

Hello,

I'm starting to learn Drupal and all the things you can do with it, so i have this project i'm working on its something for a financial website. i have some basic knowledge of Html and CSS and i understand PHP but can't write any php or anything. 

Short explanation: The calculation is used to give a small business owners insights on how they are preforming and if they could have done better. The base calculations are in an excell sheet, we only need to fill in 3 tables of numbers witch then will calculate outcomes. these outcomes are shown in different charts.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions