You are here

function amp_db_enable_amp in Accelerated Mobile Pages (AMP) 7

Set a node as AMP enabled.

Parameters

$node_id: Node ID of the node to set as enabled.

Throws

\Exception

1 call to amp_db_enable_amp()
amp_node_enabled_form_submit in ./amp.module
Form callback to save the enabled status.

File

includes/amp.db.inc, line 61
DB functions for AMP.

Code

function amp_db_enable_amp($node_id) {

  // Enable removes the flag from the db.
  amp_db_remove($node_id);
}