I'm creating a module which has a module_page function. Everything the module does, it happens int he module_page function. I need some user interaction using a form. How do I go about to add this
What is the best practice to get the current path of a page. I need this for a cannonical tag and to make my page title clickable.
I started with a combination of $node->url and drupal_lookup_path . I get an error that says that node is missing, even though the variable does exist and is tested with isset. Obviously this is not the way to go.
The bottom of each of my pages (under the footer) states "ErroR". I also get the same message when I run cron. I am not sure if this is related but I made a change in my settings.php file yesterday (which I then removed). Also, I enabled the simplenews module.
I haven't seen any solution for this for Drupal 7, but it should be simple. How can I get number of nodes of certain type ?
I know I'll have to use block with PHP filter, but what code do I need to display it wherever I want?