Skip to main content
edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
Source Link
Mehrdad201
  • 1.3k
  • 3
  • 19
  • 34

how access $content array inside a block php?

I have created a block and the format of it's content is PHP CODE.

this block is available only full page of node type article.

now in my block , I want to access $content or $page array.

I used global operation such as

global $content;
dpm ($content);

or

global $page;
dpm($page);

But both of these blocks return no result.

Please guide me.

Thanks a lot.