You are here

social_embed.install in Open Social 10.3.x

Install, update and uninstall functions for the social_embed module.

File

modules/social_features/social_embed/social_embed.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the social_embed module.
 */

/**
 * Implements hook_install().
 *
 * Perform actions related to the installation of social_embed.
 */
function social_embed_install() {

  // Create the social_embed icon.
  social_embed_create_media_button();
}

/**
 * Create the social_embed icon.
 */
function social_embed_update_8001() {

  // Create the social_embed icon.
  social_embed_create_media_button();
}

/**
 * Enable 'administer url_embed' permission for sitemanagers.
 */
function social_embed_update_10301() {
  user_role_grant_permissions('sitemanager', [
    'administer url_embed',
  ]);
}

Functions

Namesort descending Description
social_embed_install Implements hook_install().
social_embed_update_10301 Enable 'administer url_embed' permission for sitemanagers.
social_embed_update_8001 Create the social_embed icon.