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

Clearing REST API url cache

hi,

I have a few API urls created using services module.Is there any way to clear it's cache programmatically?

In which caegory these urls are cached, page or content ?

Custom block don't show title in region?

I designed my first block for reading some variables from an API and print it in sidebar region. The blocks works BUT the title is missing and block dissapears when API variables updates (rebuilding cache put it again in the site).

I searched in the web but I didn't see much info about custom block programing. I really need to solve that issues to publish the block.

Thanks for your time.

Links in module_name.links.menu.yml not appearing when renamed????

Hello friends,

I am trying to add a menu link to the main navigation via my_module.links.menu.yml I have done this before without issue. The problem now arises when I try add a new link. None of the new links I create via the links.menu.yml file for the Main navigation are displaying anymore.

I have done some testing and it appears somehow related to the links name. If I use the name of an existing link (a working link I previously created), the link will appear as expected, but as soon as I try give the link a new name, the link is no longer visible or displayed.

Curl hit twice in drupal 7 custom module

Hi ,

I am facing issue while calling zoom api from drupal 7 custom module .

Actually there is some issue while calling zoom meetings api through DRUPAL 7 meeting gets created two times at one curl hit.

Below is the my curl code for calling zoom meeting API.

$curl = curl_init();

Access a node field from a view

Hi!

I need the "value" of a "filter" in my view to have the same "value" as a "field" of a "node" of a different type of content. By code I try to access that node through a hook but I find it impossible.

Example

Content type 1

Content type 2

View- fields content type 2- filter with value of field of content type 1.

Thanks :)

Regarding delete fields programmatically

Hi,

In my module, I have two content types Text and Source. Every time I create a node of the content type Source, it creates a field in the content type Text:

e.g. If I create a node of the content type Source with title "Introduction", it creates a field in the content type Text as field_introduction.

I have used hook_entity_delete() to delete the Source nodes from the database:

function heritage_schema_entity_delete(EntityInterface $entity) {

Pages

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