Last active
December 29, 2015 00:09
-
-
Save yanniboi/7583883 to your computer and use it in GitHub Desktop.
Pages and Menu routing in Instagram Block (drupal-8)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function instagram_block_menu() { | |
$items['admin/config/content/instagram_block'] = array( | |
'title' => 'Instagram Block', | |
'description' => 'Configuration page for Instagram Block.', | |
'router_name' => 'instagram_block_admin_config_form', | |
); | |
return $items; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function instagram_block_menu() { | |
$items['admin/config/content/instagram_block'] = array( | |
'title' => 'Instagram Block', | |
'description' => 'Configuration page for Instagram Block.', | |
'page callback' => 'drupal_get_form', | |
'page arguments' => array('instagram_block_admin_settings'), | |
'access arguments' => array('administer site configuration'), | |
'file' => 'instagram_block.admin.inc', | |
); | |
return $items; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment