Skip to content

Instantly share code, notes, and snippets.

@yanniboi
Last active December 29, 2015 00:09
Show Gist options
  • Save yanniboi/7583883 to your computer and use it in GitHub Desktop.
Save yanniboi/7583883 to your computer and use it in GitHub Desktop.
Pages and Menu routing in Instagram Block (drupal-8)
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;
}
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