You are here

function view_mode_page_delete_patterns in View Mode Page 7.2

Same name and namespace in other branches
  1. 8 view_mode_page.module \view_mode_page_delete_patterns()
  2. 8.2 view_mode_page.module \view_mode_page_delete_patterns()
  3. 7 view_mode_page.module \view_mode_page_delete_patterns()

DEPRECATED: Delete URL patterns from the database.

The query may be used with no arguments or with one or more arguments. Each argument increases the specificity of the delete process.

This does not necessarily effect the patterns saved in the menu_router table. It only removes the patterns from the View Mode Page table.

Parameters

string $content_type: The name of the content type that the pattern is used for.

string $view_mode: The name of the view mode.

string $pattern: The URL pattern that is used in the hook_menu() call.

See also

view_mode_page_delete_entity_patterns

1 call to view_mode_page_delete_patterns()
ViewModePageTestCase::testDeletePattern in ./view_mode_page.test
Test deleting a pattern with the non-entity based function

File

./view_mode_page.module, line 606
View Mode Page module allows users to add a page for a specific view mode.

Code

function view_mode_page_delete_patterns($content_type = NULL, $view_mode = NULL, $pattern = NULL) {
  return view_mode_page_delete_entity_patterns('node', $content_type, $view_mode, $pattern);
}