Function Reference: gd_list_check_admin_notices

Summary

List manager admin notices

Source File

gd_list_check_admin_notices() is located in geodir_list_manager/geodir_list_manager.php [Line: 89]

Source Code

function gd_list_check_admin_notices()
{
    $errors = gd_list_check_plugin_requirements();

    if ( empty ( $errors ) )
        return;

    // Suppress "Plugin activated" notice.
    unset( $_GET['activate'] );

    // This plugin's name
    $name = get_file_data( __FILE__, array ( 'Plugin Name' ) );

    $message = __( '<i>'.$name[0].'</i> has been deactivated.', GEODIRLISTS_TEXTDOMAIN );

    printf(
        '<div class="error"><p>%1$s</p>
        <p>%2$s</p></div>',
        join( '</p><p>', $errors ),
        $message
    );

    deactivate_plugins( plugin_basename( __FILE__ ) );
}