I have created four modules from scratch. In that two modules display and two modules not display. Now I have created another fresh module but still its not display.
info:
name = Issuu Home
description = Issuu Home API
core = 7.x
configure = sites/all/modules/ac/Issuu Home
package = AC
module:
<?php
/**
* Purpose:
* Implements issuu_home_block_info.
*
*
* @return $blocks
*
* @since Feb 2017
*/
function issuu_home_block_info() {
$blocks['issuu_home'] = array(
'info' => t('Issuu Home block for issuu landing page'),
'subject' => t('Issuu Home block for issuu landing page'),
'cache' => DRUPAL_NO_CACHE,
//'status' => 1,
//'visibility' => 1,
//'weight' => 0,
//'cache' => DRUPAL_CACHE_PER_ROLE,
//'status' => 1,
// For block to be listed as disabled on blocks page, set region to -1.
'region' => -1,
//'theme' => 'csny',
);
}
function issuu_home_menu() {
$items = array();
$items['issuu_home'] = array( //this creates a URL that will call this form at "examples/form-example"
'title' => 'Issuu Home List', //page title
'description' => 'List of Issuu Home',
'page callback' => 'issuu_home', //this is the function that will be called when the page is accessed. for a form, use drupal_get_form
'type' => MENU_CALLBACK,
'access callback' => TRUE
);
return $items;
}
function issuu_home() {
$output = "Issu Home"
return $output;
}
/**
* Implements hook_block_view
*
* Passes off the function call to _custom_module_view_DELTA
*/
function issuu_home_block_view($delta = '') {
$blocks = array();
$blocks['issuu_home_block'] = array(
'info' => t('Issuu Home Block'),
'subject' => t('Issuu Home Block'),
'status' => 1,
);
$block = array(
'content' => issuu_home(),
);
return $block;
}
I have also follow disable module>>uninstall>>clear cache >> activate.
I have tried with status, cache but no luck.
.info: mark all of it and use "the{}button" (or its keyboard short-cut) in the post editor.)(still its not display-> it doesn't display or it isn't visible/displayed) - greybeard