You are here

function paragraphs_previewer_menu in Paragraphs Previewer 7

Implements hook_menu().

File

./paragraphs_previewer.module, line 21
Provides a rendered preview of a paragraphs item on an entity form..

Code

function paragraphs_previewer_menu() {
  $items = array();
  $items['paragraphs-previewer/form/%'] = array(
    'title' => 'Paragraphs Preview',
    'description' => 'Renders a paragraph on an entity edit form.',
    'page callback' => 'paragraphs_previewer_form_preview',
    'page arguments' => array(
      2,
    ),
    'access arguments' => array(
      'view any paragraphs previewer',
    ),
    'file' => 'paragraphs_previewer.pages.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}